Skip to content

Commit 6de2f76

Browse files
committed
Fix lint
1 parent ed6f719 commit 6de2f76

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/cli/common.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -596,11 +596,9 @@ pub fn ignorable_error(error: crate::errors::Error, no_prompt: bool) -> Result<(
596596
if no_prompt {
597597
warn!("continuing (because the -y flag is set and the error is ignorable)");
598598
Ok(())
599+
} else if confirm("\nContinue? (y/N)", false).unwrap_or(false) {
600+
Ok(())
599601
} else {
600-
if confirm("\nContinue? (y/N)", false).unwrap_or(false) {
601-
Ok(())
602-
} else {
603-
Err(error)
604-
}
602+
Err(error)
605603
}
606604
}

0 commit comments

Comments
 (0)