Skip to content

Commit

Permalink
refactor(gear-wasm-builder): move a directory creation out of the con…
Browse files Browse the repository at this point in the history
…dition
  • Loading branch information
fluiderson committed Jul 21, 2023
1 parent 3eda811 commit cfb272b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/wasm-builder/src/wasm_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -211,15 +211,15 @@ impl WasmProject {

let mut source_code = "#![no_std] pub use orig_project::*;\n".to_owned();

fs::create_dir_all(&self.wasm_target_dir)?;

// Write metadata
if let Some(metadata) = &self.project_type.metadata() {
let file_base_name = self
.file_base_name
.as_ref()
.expect("Run `WasmProject::create_project()` first");

fs::create_dir_all(&self.wasm_target_dir)?;

let wasm_meta_path = self
.wasm_target_dir
.join([file_base_name, ".meta.txt"].concat());
Expand Down

0 comments on commit cfb272b

Please sign in to comment.