summaryrefslogtreecommitdiffstats
path: root/crates/common/flockfile/src/unix.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/common/flockfile/src/unix.rs')
-rw-r--r--crates/common/flockfile/src/unix.rs14
1 files changed, 6 insertions, 8 deletions
diff --git a/crates/common/flockfile/src/unix.rs b/crates/common/flockfile/src/unix.rs
index 4ef847d2..79fb71e4 100644
--- a/crates/common/flockfile/src/unix.rs
+++ b/crates/common/flockfile/src/unix.rs
@@ -116,15 +116,13 @@ pub fn check_another_instance_is_not_running(
.as_path(),
) {
Ok(file) => Ok(file),
- Err(err) => {
- return match &err {
- FlockfileError::FromIo { path, .. } | FlockfileError::FromNix { path, .. } => {
- error!("Another instance of {} is running.", app_name);
- error!("Lock file path: {}", path.as_path().to_str().unwrap());
- Err(err)
- }
+ Err(err) => match &err {
+ FlockfileError::FromIo { path, .. } | FlockfileError::FromNix { path, .. } => {
+ error!("Another instance of {} is running.", app_name);
+ error!("Lock file path: {}", path.as_path().to_str().unwrap());
+ Err(err)
}
- }
+ },
}
}