chore: miscellaneous updates

This commit is contained in:
David Allen 2025-05-26 22:51:58 -06:00
parent a357effe12
commit 5049399d17
Signed by: towk
GPG key ID: 0430CDBE22619155
4 changed files with 18 additions and 12 deletions

View file

@ -21,5 +21,5 @@ func PrintYAML(data any) {
if err != nil {
log.Error().Err(err).Msgf("failed to marshal scanned results to JSON")
}
fmt.Printf("%s\n", string(b))
fmt.Print(string(b))
}

View file

@ -1,10 +0,0 @@
package util
import "strings"
func TidyJSON(s string) string {
s = strings.ReplaceAll(s, "\n", "")
s = strings.ReplaceAll(s, "\t", "")
s = strings.ReplaceAll(s, " ", "")
return strings.ReplaceAll(s, "\"", "'")
}