Early return statement (thanks @inverse)
parent
55fe955d27
commit
295fd44a38
|
@ -352,15 +352,13 @@ func DisablePublicDashboard() bool {
|
||||||
_, err := godotenv.Read(envFilePath)
|
_, err := godotenv.Read(envFilePath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Println("myedge.app environment file for the dashboard / api not found. No need to delete.")
|
log.Println("myedge.app environment file for the dashboard / api not found. No need to delete.")
|
||||||
} else {
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
cmdArgs := []string{envFilePath}
|
cmdArgs := []string{envFilePath}
|
||||||
utils.Exec(utils.GetPath("apiPath"), "rm", cmdArgs)
|
utils.Exec(utils.GetPath("apiPath"), "rm", cmdArgs)
|
||||||
buildFrameworkContainers()
|
buildFrameworkContainers()
|
||||||
return true
|
return true
|
||||||
}
|
|
||||||
|
|
||||||
return false
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func IsPublicDashboard() bool {
|
func IsPublicDashboard() bool {
|
||||||
|
|
|
@ -292,7 +292,6 @@ func ExecuteSchedules(tick int) {
|
||||||
taskSetupCloudOptions()
|
taskSetupCloudOptions()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Executing on startup (first tick). Schedules run before tasks in the SystemIterator
|
// Executing on startup (first tick). Schedules run before tasks in the SystemIterator
|
||||||
uptime := taskGetSystemUptime()
|
uptime := taskGetSystemUptime()
|
||||||
log.Println("Uptime is " + uptime + " seconds (" + system.GetUptimeFormatted() + ")")
|
log.Println("Uptime is " + uptime + " seconds (" + system.GetUptimeFormatted() + ")")
|
||||||
|
|
Loading…
Reference in New Issue