Skip to content

Commit

Permalink
chore: fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
rockstar committed Dec 16, 2023
1 parent b4f8257 commit f909d2e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ impl Pidlock {

let mut contents = String::new();
if file.read_to_string(&mut contents).is_err() {
warn!("Removing corrupted/invalid pid file at {}", self.path.to_str().unwrap());
warn!(
"Removing corrupted/invalid pid file at {}",
self.path.to_str().unwrap()
);
fs::remove_file(&self.path).unwrap();
return None;
}
Expand All @@ -161,7 +164,10 @@ impl Pidlock {
None
}
Err(_) => {
warn!("Removing corrupted/invalid pid file at {}", self.path.to_str().unwrap());
warn!(
"Removing corrupted/invalid pid file at {}",
self.path.to_str().unwrap()
);
fs::remove_file(&self.path).unwrap();
None
}
Expand Down

0 comments on commit f909d2e

Please sign in to comment.