Skip to content

Commit 87ba881

Browse files
committed
init empty map
1 parent 7709be0 commit 87ba881

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/fleet/integration_policy/secrets.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,9 @@ func newSecretStore(ctx context.Context, private privateData) (store secretStore
2121
if diags != nil {
2222
return
2323
}
24-
if bytes == nil {
25-
bytes = []byte("{}")
24+
if len(bytes) == 0 {
25+
store = secretStore{}
26+
return
2627
}
2728

2829
err := json.Unmarshal(bytes, &store)

0 commit comments

Comments
 (0)