Skip to content

Commit

Permalink
fixed bug of Add cmd of wrong <what> input handling
Browse files Browse the repository at this point in the history
  • Loading branch information
jfding committed Oct 8, 2024
1 parent c0e08a3 commit a4838cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,8 @@ fn main() {
}
let mut todo = TaskBox::new(inbox_path);

let input = what.unwrap_or(i_gettext());
#[allow(clippy::redundant_closure)]
let input = what.unwrap_or_else(|| i_gettext());
if ! input.is_empty() {
let mut start_date = get_today();

Expand Down

0 comments on commit a4838cf

Please sign in to comment.