Weather: fix out of bounds check
parent
50b911465d
commit
63416829ee
|
@ -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…
Reference in New Issue