1
0
mirror of https://github.com/nicoverbruggen/phpmon.git synced 2025-08-10 13:00:07 +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 .window?.contentViewController as? DomainListVC
if vc != nil { 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() vc!.reloadDomains()
} else { } else {
// If the view does not exist, reload the cached data that was populated when the app initially launched. // 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 { public func process() async {
self.values[.hasValetInstalled] = !{ self.values[.hasValetInstalled] = !{
let output = valet("--version", sudo: false) let output = valet("--version", sudo: false)
// Failure condition #1: does not contain Laravel Valet // Failure condition #1: does not contain Laravel Valet
if !output.contains("Laravel Valet") { if !output.contains("Laravel Valet") {
return true return true
} }
// Extract the version number // Extract the version number
Valet.shared.version = VersionExtractor.from(output) Valet.shared.version = VersionExtractor.from(output)
// Get the actual version // Get the actual version
return Valet.shared.version == nil 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
} }
} }