mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +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.")
|
||||
}
|
||||
|
||||
// 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
|
||||
var action = wrapper.status == .active ? "stop" : "start"
|
||||
|
||||
@ -107,10 +102,11 @@ class ValetServicesManager: ServicesManager {
|
||||
action = "restart"
|
||||
}
|
||||
|
||||
let command = "services \(action) \(wrapper.formula.name)"
|
||||
|
||||
// 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
|
||||
await ServicesManager.shared.reloadServicesStatus()
|
||||
|
@ -77,7 +77,6 @@ struct VersionPopoverView: View {
|
||||
return "alert.composer_php_requirement.unable_to_determine".localized
|
||||
}
|
||||
|
||||
|
||||
let suffix = {
|
||||
if isRunningTests || isRunningSwiftUIPreview {
|
||||
return "test"
|
||||
|
Reference in New Issue
Block a user