Weather: fix out of bounds check

master
Elis Hirwing 4 years ago
parent 50b911465d
commit 63416829ee
Signed by: etu
GPG Key ID: D57EFA625C9A925F
  1. 2
      statusscreen-weather.go

@ -23,7 +23,7 @@ func (weather *Weather) GetOutput() []string {
parts := strings.Split(weather.lastResponse, "\n")
if len(parts) > 6 {
if len(parts) >= 37 {
return parts[:37]
}

Loading…
Cancel
Save