summaryrefslogtreecommitdiff
path: root/internal/verify
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-20 13:21:34 +0200
committerjwijenbergh <jeroenwijenbergh@protonmail.com>2022-09-20 13:21:34 +0200
commit25d2143a627531fc0475d639c1e8f657ccafa630 (patch)
tree3b5b69b64f5f6879810842464056543e315c64a4 /internal/verify
parentb0e4e454fc94935cf8ee3282a07596ec53268a18 (diff)
Golang-ci-lint: Fixes
Diffstat (limited to 'internal/verify')
-rw-r--r--internal/verify/verify_test.go6
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)
}