Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alyn509 committed Aug 6, 2024
1 parent b560322 commit 36a0918
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions framework/meta/src/cmd/template/template_adjuster.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,10 @@ pub struct TemplateAdjuster {
}
impl TemplateAdjuster {
pub fn update_cargo_toml_files(&self, args_tag: FrameworkVersion) {
let author_as_str = if self.new_author.is_none() {
DEFAULT_AUTHOR.to_string()
} else {
self.new_author
.clone()
.unwrap_or_else(|| DEFAULT_AUTHOR.to_string())
};
let author_as_str = self
.new_author
.clone()
.unwrap_or_else(|| DEFAULT_AUTHOR.to_string());
self.update_cargo_toml_root(author_as_str.clone());
self.update_cargo_toml_meta();
self.update_cargo_toml_wasm(args_tag);
Expand Down

0 comments on commit 36a0918

Please sign in to comment.