Skip to content

Commit

Permalink
chore: 🤖 revert decode secret change
Browse files Browse the repository at this point in the history
  • Loading branch information
sj-williams committed Feb 4, 2025
1 parent f3da5f1 commit cf4264b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions pkg/decodeSecret/decodeSecret.go
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,10 @@ func base64decode(i interface{}) string {
}

func formatJson(result map[string]interface{}) (string, error) {
var buf bytes.Buffer
encoder := json.NewEncoder(&buf)
encoder.SetEscapeHTML(false)
encoder.SetIndent("", " ")
if err := encoder.Encode(result); err != nil {
str, err := json.MarshalIndent(result, "", " ")
if err != nil {
return "", err
}
return buf.String(), nil

return string(str), nil
}

0 comments on commit cf4264b

Please sign in to comment.