🧹 make clippy happy

This commit is contained in:
Vladislav Nepogodin 2023-04-03 19:09:26 +04:00
parent 5baf605d65
commit 06e07a76a4
No known key found for this signature in database
GPG Key ID: B62C3D10C54D5DA9
1 changed files with 3 additions and 5 deletions

View File

@ -520,12 +520,10 @@ fn on_servbtn_clicked(button: &gtk::CheckButton) {
} else {
format!("/sbin/pkexec bash -c \"systemctl enable --now --force {action_data}\"")
}
} else if action_type == "user_service" {
format!("systemctl --user disable --now {action_data}")
} else {
if action_type == "user_service" {
format!("systemctl --user disable --now {action_data}")
} else {
format!("/sbin/pkexec bash -c \"systemctl disable --now {action_data}\"")
}
format!("/sbin/pkexec bash -c \"systemctl disable --now {action_data}\"")
};
// Create context channel.