Skip to content

Commit

Permalink
fix(lint): Run linters
Browse files Browse the repository at this point in the history
  • Loading branch information
m8rmclaren committed Dec 6, 2023
1 parent cfa0956 commit 8fd8dea
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions internal/controllers/fake_configclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,14 @@ func NewFakeConfigClient(fakeControllerRuntimeClient client.Client) util.ConfigC
}
}

func (f FakeConfigClient) SetContext(ctx context.Context) {
func (f *FakeConfigClient) SetContext(ctx context.Context) {
f.ctx = ctx
}

func (f FakeConfigClient) GetConfigMap(name types.NamespacedName, out *corev1.ConfigMap) error {
func (f *FakeConfigClient) GetConfigMap(name types.NamespacedName, out *corev1.ConfigMap) error {
return f.client.Get(f.ctx, name, out)
}

func (f FakeConfigClient) GetSecret(name types.NamespacedName, out *corev1.Secret) error {
func (f *FakeConfigClient) GetSecret(name types.NamespacedName, out *corev1.Secret) error {
return f.client.Get(f.ctx, name, out)
}
4 changes: 2 additions & 2 deletions internal/issuer/util/configclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (c *configClient) GetConfigMap(name types.NamespacedName, out *corev1.Confi
}

// Check if the client has access to the configmap resource
if ok, _ := c.accessCache[name.String()]; !ok {
if _, ok := c.accessCache[name.String()]; !ok {
err := c.verifyAccessFunc("configmaps", name)
if err != nil {
return err
Expand All @@ -132,7 +132,7 @@ func (c *configClient) GetSecret(name types.NamespacedName, out *corev1.Secret)
}

// Check if the client has access to the secret resource
if ok, _ := c.accessCache[name.String()]; !ok {
if _, ok := c.accessCache[name.String()]; !ok {
err := c.verifyAccessFunc("secrets", name)
if err != nil {
return err
Expand Down

0 comments on commit 8fd8dea

Please sign in to comment.