From 25d2143a627531fc0475d639c1e8f657ccafa630 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 20 Sep 2022 13:21:34 +0200 Subject: Golang-ci-lint: Fixes --- internal/verify/verify_test.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'internal/verify') diff --git a/internal/verify/verify_test.go b/internal/verify/verify_test.go index 47b1dc2..1720c97 100644 --- a/internal/verify/verify_test.go +++ b/internal/verify/verify_test.go @@ -10,8 +10,6 @@ import ( ) func Test_verifyWithKeys(t *testing.T) { - var err error - var pk []string { file, err := os.Open("test_data/public.key") @@ -328,9 +326,9 @@ func Test_verifyWithKeys(t *testing.T) { // Cache file contents in map, mapping file names to contents files := map[string][]byte{} loadFile := func(name string) { - content, loaded := files[name] + _, loaded := files[name] if !loaded { - content, err = ioutil.ReadFile("test_data/" + name) + content, err := ioutil.ReadFile("test_data/" + name) if err != nil { panic(err) } -- cgit v1.2.3