Early return statement (thanks @inverse)

pull/17/head
Paulo Truta 2022-02-05 13:52:01 +00:00
parent 55fe955d27
commit 295fd44a38
2 changed files with 5 additions and 8 deletions

View File

@ -352,15 +352,13 @@ func DisablePublicDashboard() bool {
_, err := godotenv.Read(envFilePath)
if err != nil {
log.Println("myedge.app environment file for the dashboard / api not found. No need to delete.")
} else {
return false
}
cmdArgs := []string{envFilePath}
utils.Exec(utils.GetPath("apiPath"), "rm", cmdArgs)
buildFrameworkContainers()
return true
}
return false
}
func IsPublicDashboard() bool {

View File

@ -292,7 +292,6 @@ func ExecuteSchedules(tick int) {
taskSetupCloudOptions()
}
// Executing on startup (first tick). Schedules run before tasks in the SystemIterator
uptime := taskGetSystemUptime()
log.Println("Uptime is " + uptime + " seconds (" + system.GetUptimeFormatted() + ")")