mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-10 05:00:06 +02:00
👌 Get rid of warnings
This commit is contained in:
@@ -94,11 +94,6 @@ class ValetServicesManager: ServicesManager {
|
|||||||
return Log.err("The wrapper for '\(named)' is missing.")
|
return Log.err("The wrapper for '\(named)' is missing.")
|
||||||
}
|
}
|
||||||
|
|
||||||
// Prepare the appropriate command to stop or start a service
|
|
||||||
let before = self.homebrewServices.first { service in
|
|
||||||
return service.name == named
|
|
||||||
}
|
|
||||||
|
|
||||||
// Normally, we allow starting and stopping
|
// Normally, we allow starting and stopping
|
||||||
var action = wrapper.status == .active ? "stop" : "start"
|
var action = wrapper.status == .active ? "stop" : "start"
|
||||||
|
|
||||||
@@ -107,10 +102,11 @@ class ValetServicesManager: ServicesManager {
|
|||||||
action = "restart"
|
action = "restart"
|
||||||
}
|
}
|
||||||
|
|
||||||
let command = "services \(action) \(wrapper.formula.name)"
|
|
||||||
|
|
||||||
// Run the command
|
// Run the command
|
||||||
await brew(command, sudo: wrapper.formula.elevated)
|
await brew(
|
||||||
|
"services \(action) \(wrapper.formula.name)",
|
||||||
|
sudo: wrapper.formula.elevated
|
||||||
|
)
|
||||||
|
|
||||||
// Reload the services status to confirm this worked
|
// Reload the services status to confirm this worked
|
||||||
await ServicesManager.shared.reloadServicesStatus()
|
await ServicesManager.shared.reloadServicesStatus()
|
||||||
|
@@ -77,7 +77,6 @@ struct VersionPopoverView: View {
|
|||||||
return "alert.composer_php_requirement.unable_to_determine".localized
|
return "alert.composer_php_requirement.unable_to_determine".localized
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
let suffix = {
|
let suffix = {
|
||||||
if isRunningTests || isRunningSwiftUIPreview {
|
if isRunningTests || isRunningSwiftUIPreview {
|
||||||
return "test"
|
return "test"
|
||||||
|
Reference in New Issue
Block a user