1
0
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:
2023-01-09 18:10:51 +01:00
parent 55fc90bcf5
commit d8738b685f
2 changed files with 4 additions and 9 deletions

View File

@ -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()

View File

@ -77,7 +77,6 @@ struct VersionPopoverView: View {
return "alert.composer_php_requirement.unable_to_determine".localized
}
let suffix = {
if isRunningTests || isRunningSwiftUIPreview {
return "test"