unnecessary garbage has been removed

This commit is contained in:
Данил 2022-10-09 12:03:53 +03:00
parent ea9931dc83
commit 416e14b418

View file

@ -49,8 +49,6 @@ var SettingsUpdate = func(w http.ResponseWriter, r *http.Request) {
wallpaper := r.FormValue("wallpaper")
startup := r.FormValue("startup")
fmt.Println("S: "+startup, "W: "+wallpaper)
if startup == "" && wallpaper == "" {
utils.Respond(w, utils.Message(false, "All fields are required."))
return
@ -63,6 +61,7 @@ var SettingsUpdate = func(w http.ResponseWriter, r *http.Request) {
}
if wallpaper == "1" {
fmt.Println("Wallpaper enabled")
go functions.StartWallpaper()
}
}