Browse Source

Weather: fix out of bounds check

master
Elis Hirwing 1 year ago
parent
commit
63416829ee
Signed by: etu <elis@hirwing.se> GPG Key ID: D57EFA625C9A925F
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      statusscreen-weather.go

+ 1
- 1
statusscreen-weather.go View File

@@ -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