diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-09-20 13:21:34 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-09-20 13:21:34 +0200 |
| commit | 25d2143a627531fc0475d639c1e8f657ccafa630 (patch) | |
| tree | 3b5b69b64f5f6879810842464056543e315c64a4 /internal/verify/verify_test.go | |
| parent | b0e4e454fc94935cf8ee3282a07596ec53268a18 (diff) | |
Golang-ci-lint: Fixes
Diffstat (limited to 'internal/verify/verify_test.go')
| -rw-r--r-- | internal/verify/verify_test.go | 6 |
1 files changed, 2 insertions, 4 deletions
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) } |
