Weather: fix out of bounds check

master
Elis Hirwing 2018-11-14 13:33:02 +01:00
parent 50b911465d
commit 63416829ee
Signed by: etu
GPG Key ID: D57EFA625C9A925F
1 changed files with 1 additions and 1 deletions

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]
}