fix linting

This commit is contained in:
Mike Mason
2023-07-17 19:24:54 +00:00
parent 1f67d3c805
commit 4d1e9717e5
14 changed files with 81 additions and 17 deletions

View File

@@ -18,7 +18,7 @@ import (
const defaultPermissionsURL = "https://permissions-api.hollow-a.sv15.metalkube.net"
var defaultHTTPClient = &http.Client{
Timeout: 5 * time.Second,
Timeout: 5 * time.Second, // nolint:gomnd // unexported
}
// Client is the permissions client.
@@ -104,6 +104,7 @@ func encodeJSON(v any) (*bytes.Buffer, error) {
return &buff, nil
}
// NewClient creats a new permissions client.
func NewClient(token string, options ...Option) (*Client, error) {
client := &Client{
logger: zap.NewNop().Sugar(),