1
0
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:
2022-09-17 23:16:49 +02:00
parent c35e7781f4
commit bb124bd0ee
2 changed files with 5 additions and 3 deletions

View File

@ -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.

View File

@ -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
}
}