Skip to content

Commit

Permalink
refactor code
Browse files Browse the repository at this point in the history
  • Loading branch information
fankaiLiu committed Nov 26, 2023
1 parent 065ca89 commit 8ac49ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/utils/create_project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,9 +653,7 @@ fn create_basic_file(
for (file_name, template) in &templates {
render_and_write_to_file(handlebars, template, &data, project_path.join(file_name))?;
}
let router_path = src_path.join("routers");
std::fs::create_dir_all(&router_path)?;
Ok((src_path))
Ok(src_path)
}

fn handle_dependencies(
Expand Down

0 comments on commit 8ac49ef

Please sign in to comment.