diff options
author | siddharth ravikumar <s@ricketyspace.net> | 2022-07-02 12:36:13 -0400 |
---|---|---|
committer | siddharth ravikumar <s@ricketyspace.net> | 2022-07-02 12:36:13 -0400 |
commit | b2c09967704a048fbd5168e6930a7626dcaf98f2 (patch) | |
tree | 43e947dbc9cbca31db193b1024f4bf2421a7d0b8 /nws/nws_test.go | |
parent | 64dd223fcc24755956819bad3dcba3ad047b09e8 (diff) |
nws: update `GetForecastHourly`
Change return error type to `nws.Error`
Diffstat (limited to 'nws/nws_test.go')
-rw-r--r-- | nws/nws_test.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nws/nws_test.go b/nws/nws_test.go index 2b29ca1..88f1c2b 100644 --- a/nws/nws_test.go +++ b/nws/nws_test.go @@ -113,9 +113,9 @@ func TestGetForecastHourly(t *testing.T) { } // Get forecast hourly. - fc, err := GetForecastHourly(np) - if err != nil { - t.Errorf("error: %v", err) + fc, nwsErr := GetForecastHourly(np) + if nwsErr != nil { + t.Errorf("error: %v", nwsErr) return } |