Skip to content

Commit

Permalink
Fix hound issues
Browse files Browse the repository at this point in the history
  • Loading branch information
aduffeck committed Jul 1, 2022
1 parent 1a4769d commit 9e88aa8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions internal/http/services/owncloud/ocdav/ocdav.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ type Config struct {
ProductName string `mapstructure:"product_name"`
ProductVersion string `mapstructure:"product_version"`

MachineAuthApiKey string `mapstructure:"machine_auth_apikey"`
MachineAuthAPIKey string `mapstructure:"machine_auth_apikey"`
}

func (c *Config) init() {
Expand Down Expand Up @@ -441,7 +441,7 @@ func (s *svc) sspReferenceIsChildOf(ctx context.Context, client gatewayv1beta1.G
return false, err
}
}
childAuthCtx, err := authContextForUser(client, childStatRes.Info.Owner, s.c.MachineAuthApiKey)
childAuthCtx, err := authContextForUser(client, childStatRes.Info.Owner, s.c.MachineAuthAPIKey)
if err != nil {
return false, err
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/micro/ocdav/option.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,10 +84,10 @@ func JWTSecret(s string) Option {
}
}

// MachineAuthApiKey provides a function to set the machine auth api key option.
func MachineAuthApiKey(s string) Option {
// MachineAuthAPIKey provides a function to set the machine auth api key option.
func MachineAuthAPIKey(s string) Option {
return func(o *Options) {
o.config.MachineAuthApiKey = s
o.config.MachineAuthAPIKey = s
}
}

Expand Down

0 comments on commit 9e88aa8

Please sign in to comment.