Skip to content

Commit

Permalink
Fix linter/tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaavi committed Oct 13, 2023
1 parent e6c4937 commit 7dcc0de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/base/module.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
Expand Down
3 changes: 2 additions & 1 deletion updates/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 7dcc0de

Please sign in to comment.