From 6099f13490b7709994b5d1c230bcf73b096df376 Mon Sep 17 00:00:00 2001 From: Scott Rigby Date: Wed, 28 May 2025 13:15:46 -0400 Subject: [PATCH] Fix operator Signed-off-by: Scott Rigby --- pkg/registry/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/registry/client.go b/pkg/registry/client.go index 5a9058fcf..dd17c5d99 100644 --- a/pkg/registry/client.go +++ b/pkg/registry/client.go @@ -107,7 +107,7 @@ func handleEmptyConfgFile(credentialsFile string, client *Client) { if err == nil { var configData map[string]json.RawMessage // handle only if credentials file is empty - if err := json.NewDecoder(f).Decode(&configData); err != nil && !errors.Is(err, io.EOF) { + if err := json.NewDecoder(f).Decode(&configData); err != nil && errors.Is(err, io.EOF) { // Attempt to write empty JSON map to config file client.credentialsFile = "" encoder := json.NewEncoder(f)