From 7dcc0deee1c84267585316cb09dc5fbaaa61183d Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 13 Oct 2023 12:02:29 +0200 Subject: [PATCH] Fix linter/tests --- core/base/module.go | 1 + updates/api.go | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/base/module.go b/core/base/module.go index 90f37962d..10870d174 100644 --- a/core/base/module.go +++ b/core/base/module.go @@ -2,6 +2,7 @@ package base import ( _ "github.com/safing/portbase/config" + _ "github.com/safing/portbase/metrics" "github.com/safing/portbase/modules" _ "github.com/safing/portbase/rng" ) diff --git a/updates/api.go b/updates/api.go index 980464383..88513b3a6 100644 --- a/updates/api.go +++ b/updates/api.go @@ -9,6 +9,7 @@ import ( "strings" "github.com/ghodss/yaml" + "github.com/safing/portbase/api" "github.com/safing/portbase/log" "github.com/safing/portbase/utils" @@ -82,7 +83,7 @@ func registerAPIEndpoints() error { http.Error(w, err.Error(), http.StatusInternalServerError) return } - defer file.Close() //nolint:errcheck + defer file.Close() //nolint:errcheck,gosec // Assign file to reader var reader io.Reader = file