mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-28 09:12:08 +08:00
refactor: simplify function return types and remove unnecessary wraps
This commit is contained in:
@@ -27,7 +27,10 @@ impl CoreManager {
|
||||
|
||||
match *self.get_running_mode() {
|
||||
RunningMode::Service => self.stop_core_by_service().await,
|
||||
RunningMode::Sidecar => self.stop_core_by_sidecar(),
|
||||
RunningMode::Sidecar => {
|
||||
self.stop_core_by_sidecar();
|
||||
Ok(())
|
||||
}
|
||||
RunningMode::NotRunning => Ok(()),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user