Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusvniekerk committed Sep 30, 2024
1 parent b9c845a commit cff7f80
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/installer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,7 @@ fn confirm_can_overwrite(dst: &Path) -> Result<()> {
);
eprint!("info: would you like to overwrite this file? [y/N]: ");
let mut line = String::new();
stdin
.read_line(&mut line)
.context("failed to read stdin")?;
stdin.read_line(&mut line).context("failed to read stdin")?;

if line.starts_with('y') || line.starts_with('Y') {
return Ok(());
Expand Down

0 comments on commit cff7f80

Please sign in to comment.