Skip to content

Commit

Permalink
fix clippy ling
Browse files Browse the repository at this point in the history
  • Loading branch information
aawsome committed Sep 16, 2024
1 parent d854a47 commit afcac5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions crates/core/src/commands/backup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ pub(crate) fn backup<P: ProgressBars, S: IndexedIds>(
let p = repo.pb.progress_bytes("backing up...");

let snap = if backup_stdin {
let path = &backup_path[0];
if let Some(command) = &opts.stdin_command {
let path = &backup_path[0];
let src = ChildStdoutSource::new(command, path.clone())?;
let res = archiver.archive(
&src,
Expand All @@ -265,7 +265,6 @@ pub(crate) fn backup<P: ProgressBars, S: IndexedIds>(
src.finish()?;
res

Check warning on line 266 in crates/core/src/commands/backup.rs

View check run for this annotation

Codecov / codecov/patch

crates/core/src/commands/backup.rs#L266

Added line #L266 was not covered by tests
} else {
let path = &backup_path[0];
let src = StdinSource::new(path.clone());
archiver.archive(
&src,
Expand Down

0 comments on commit afcac5e

Please sign in to comment.