app_server: Replace is_ok() by if let

This commit replaces an `is_ok()` call with a call to `if let`, thereby
fixing a clippy warning.
This commit is contained in:
Emil Engler
2023-10-19 13:54:13 +02:00
parent 15ce25ccd2
commit e5e04c6d95
+1 -2
View File
@@ -638,8 +638,7 @@ impl AppServer {
thread::spawn(move || {
let status = child.wait();
if status.is_ok() {
let status = status.unwrap();
if let Ok(status) = status {
if status.success() {
debug!("successfully passed psk to wg")
} else {