From 8f10fe283100d63af704746e8e6abee4e4509630 Mon Sep 17 00:00:00 2001 From: William Bezuidenhout Date: Tue, 20 Oct 2020 21:56:56 +0200 Subject: [PATCH] fix silly uninitialized var --- rtorrent/rtorrent_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rtorrent/rtorrent_test.go b/rtorrent/rtorrent_test.go index 595f34c..bdacbed 100644 --- a/rtorrent/rtorrent_test.go +++ b/rtorrent/rtorrent_test.go @@ -351,7 +351,7 @@ func TestRTorrent(t *testing.T) { t.Run("get torrent", func(t *testing.T) { // It will take some time to appear, so retry a few times <-time.After(time.Second) - torrents, err = client.GetTorrents(ViewMain) + torrents, err := client.GetTorrents(ViewMain) require.NoError(t, err) require.NotEmpty(t, torrents)