Indendation/brackets

This commit is contained in:
Andrew Scott 2022-08-03 00:00:11 -04:00
parent 1cc715522e
commit 7ce1f6f861
Signed by: a
GPG key ID: 3EB62D0BBB8DB381

View file

@ -63,13 +63,13 @@ func advancedMenu(app *Application) {
getPreciseLocation(app)
getDate(app)
getHistoricalData(app.Client, app)
}
if app.Forecast.Main.Temp != 0.00 {
validLoc = true
} else {
fmt.Println("I couldn't get any information for that location.")
fmt.Println("Are you sure the coordinates are valid?")
if app.Forecast.Main.Temp != 0.00 {
validLoc = true
} else {
fmt.Println("I couldn't get any information for that location.")
fmt.Println("Are you sure the coordinates are valid?")
}
}
printWeather(app)
app.Forecast.Main.Temp = 0.00