diff --git a/src/bin/git-edit-coauthor.rs b/src/bin/git-edit-coauthor.rs index 212cd0e..cd6e074 100644 --- a/src/bin/git-edit-coauthor.rs +++ b/src/bin/git-edit-coauthor.rs @@ -9,13 +9,8 @@ fn main() { if let Some(author) = authors.get(&opt.initials) { let mut updated_author: Author = author.clone(); - if let Some(name) = opt.name { - updated_author.name = name; - }; - - if let Some(email) = opt.email { - updated_author.email = email; - }; + updated_author.name = opt.name; + updated_author.email = opt.email; authors.insert(opt.initials, updated_author);