Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mchf committed Nov 15, 2023
1 parent 8a12e5b commit 0312be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/agama-cli/src/logs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ fn parse_destination(destination: Option<PathBuf>) -> Result<PathBuf, io::Error>
} else if path.parent().is_some() {
// validate if parent directory realy exists
if !path.parent().unwrap().is_dir() {
Err(err)
return Err(err)
}
// whatever else -> input error
} else {
Err(err)
return Err(err)
}

Ok(buffer)
Expand Down

0 comments on commit 0312be3

Please sign in to comment.