pkg/tsdb/stackdriver/stackdriver_test.go: return simplified

See,
pkg/tsdb/stackdriver/stackdriver_test.go:356:2⚠️ 'if err != nil { return data, err }; return data, nil' can be simplified to 'return data, err'
This commit is contained in:
Mario Trangoni 2018-09-30 18:40:58 +02:00
parent dde650905d
commit ec4139d56b

View File

@ -353,8 +353,5 @@ func loadTestFile(path string) (StackdriverResponse, error) {
return data, err
}
err = json.Unmarshal(jsonBody, &data)
if err != nil {
return data, err
}
return data, nil
return data, err
}