mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-08-07 03:50:08 +02:00
👌 Cleanup and removal of unneeded dump
This commit is contained in:
@ -37,7 +37,7 @@ extension AppDelegate {
|
||||
.window?.contentViewController as? DomainListVC
|
||||
|
||||
if vc != nil {
|
||||
// If the view exists, directly reload the list of sites
|
||||
// If the view exists, directly reload the list of sites.
|
||||
vc!.reloadDomains()
|
||||
} else {
|
||||
// If the view does not exist, reload the cached data that was populated when the app initially launched.
|
||||
|
@ -14,17 +14,19 @@ public class EnvironmentManager {
|
||||
public func process() async {
|
||||
self.values[.hasValetInstalled] = !{
|
||||
let output = valet("--version", sudo: false)
|
||||
|
||||
// Failure condition #1: does not contain Laravel Valet
|
||||
if !output.contains("Laravel Valet") {
|
||||
return true
|
||||
}
|
||||
|
||||
// Extract the version number
|
||||
Valet.shared.version = VersionExtractor.from(output)
|
||||
|
||||
// Get the actual version
|
||||
return Valet.shared.version == nil
|
||||
}() // returns true if none of the failure conditions are met
|
||||
|
||||
dump(self.values)
|
||||
}() // returns true if none of the failure conditions are met
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user