Skip to content

Commit

Permalink
minor changes to pass the format check
Browse files Browse the repository at this point in the history
  • Loading branch information
stlankes committed Feb 22, 2025
1 parent 4cc45fd commit f10df81
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/kill.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ pub fn kill_container(project_dir: PathBuf, id: &str, sig: &str, all: bool) {
return;
};

if container_state.status == "stopped" {
// container is already stopped => nothing to do
return;
} else if all {
warn!("Sending signals to all container processes is currently unimplemented!");
return;
} else if container_state.status != "created" && container_state.status != "running" {
if container_state.status == "stopped" {
// container is already stopped => nothing to do
return;
} else if all {
warn!("Sending signals to all container processes is currently unimplemented!");
return;
} else if container_state.status != "created" && container_state.status != "running" {
warn!(
"Cannot send signals to container with state \"{}\"!",
container_state.status
Expand Down

0 comments on commit f10df81

Please sign in to comment.