Skip to content

Commit

Permalink
fix use is_empty rather check len
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdillah committed Jul 21, 2023
1 parent ee907e7 commit 2a7a649
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/engine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ impl Reedline {
return Ok(EventStatus::Handled);
}

if menu.get_values().len() == 0 {
if menu.get_values().is_empty() {
menu.menu_event(MenuEvent::Deactivate);
return Ok(EventStatus::Inapplicable);
}
Expand Down

0 comments on commit 2a7a649

Please sign in to comment.