Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
markcda committed Dec 17, 2024
1 parent 3e2c242 commit 238891d
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions src/actions/check.rs
Original file line number Diff line number Diff line change
Expand Up @@ -61,18 +61,14 @@ impl CheckAction {
const EDIT_COMMAND: &str = "Edit check command";
const EDIT_REGEXES: &str = "Edit regexes";

loop {
if let Some(selected) = inquire::Select::new(
"Specify an action for Check Action:",
vec![EDIT_COMMAND, EDIT_REGEXES],
).prompt_skippable()? {
match selected {
EDIT_COMMAND => self.command.edit_command_from_prompt()?,
EDIT_REGEXES => self.change_regexes_from_prompt()?,
_ => {},
}
} else {
break
while let Some(selected) = inquire::Select::new(
"Specify an action for Check Action:",
vec![EDIT_COMMAND, EDIT_REGEXES],
).prompt_skippable()? {
match selected {
EDIT_COMMAND => self.command.edit_command_from_prompt()?,
EDIT_REGEXES => self.change_regexes_from_prompt()?,
_ => {},
}
}

Expand Down

0 comments on commit 238891d

Please sign in to comment.