diff options
Diffstat (limited to 'internal/verify')
| -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) } |
