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:
@@ -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.
|
||||||
|
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user