Skip to content

Commit

Permalink
chore(ibmsm): fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
jkayani committed Aug 15, 2023
1 parent b3a35f9 commit 5ecf52a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions pkg/backends/ibmsecretsmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (d IBMSecretData) GetSecret() (map[string]interface{}, error) {
}
case *ibmsm.KVSecret:
{
for k,v := range(v.Data) {
for k, v := range v.Data {
result[k] = v
}
}
Expand Down Expand Up @@ -256,7 +256,7 @@ func (d IBMVersionedSecretData) GetSecret() (map[string]interface{}, error) {
case *ibmsm.KVSecretVersion:
{
if *v.PayloadAvailable {
for k,v := range(v.Data) {
for k, v := range v.Data {
result[k] = v
}
}
Expand Down
14 changes: 7 additions & 7 deletions pkg/backends/ibmsecretsmanager_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"reflect"
"strings"
"testing"
"sync"
"testing"

"github.com/IBM/go-sdk-core/v5/core"
ibmsm "github.com/IBM/secrets-manager-go-sdk/secretsmanagerv2"
Expand All @@ -20,10 +20,10 @@ type MockIBMSMClient struct {
// It is shared b/w both GetSecret and GetSecretVersion for simplicity, even though each writes to a different field
GetSecretLock sync.RWMutex

GetSecretCalledWith *ibmsm.GetSecretOptions
GetSecretCallCount int
GetSecretVersionCalledWith *ibmsm.GetSecretVersionOptions
GetSecretVersionCallCount int
GetSecretCalledWith *ibmsm.GetSecretOptions
GetSecretCallCount int
GetSecretVersionCalledWith *ibmsm.GetSecretVersionOptions
GetSecretVersionCallCount int
}

var BIG_GROUP_LEN int = types.IBMMaxPerPage + 1
Expand Down Expand Up @@ -155,8 +155,8 @@ func (m *MockIBMSMClient) GetSecret(getSecretOptions *ibmsm.GetSecretOptions) (r
"hello": "there",
}
return &ibmsm.KVSecret{
Name: &name,
ID: &id,
Name: &name,
ID: &id,
Data: payload,
}, nil, nil
} else {
Expand Down

0 comments on commit 5ecf52a

Please sign in to comment.