From 15e1aed098deb43fbd1cd05173d6c3529ea96ae0 Mon Sep 17 00:00:00 2001 From: Winni Neessen Date: Tue, 21 Sep 2021 11:26:48 +0200 Subject: [PATCH] Make GoLinter happy --- .cirrus.yml | 1 - hibp_test.go | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.cirrus.yml b/.cirrus.yml index dcd23e6..5d46b88 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -17,7 +17,6 @@ lint_task: build_task: modules_cache: - fingerprint_script: cat go.sum folder: $GOPATH/pkg/mod get_script: go get github.com/wneessen/go-hibp build_script: go build github.com/wneessen/go-hibp diff --git a/hibp_test.go b/hibp_test.go index 54af4bc..5ee1756 100644 --- a/hibp_test.go +++ b/hibp_test.go @@ -18,6 +18,7 @@ func TestNewWithHttpTimeout(t *testing.T) { hc := New(WithHttpTimeout(time.Second * 10)) if hc == nil { t.Errorf("hibp client creation failed") + return } if hc.to != time.Second*10 { t.Errorf("hibp client timeout option was not set properly. Expected %d, got: %d",