diff options
Diffstat (limited to 'caddyconfig')
-rw-r--r-- | caddyconfig/caddyfile/formatter_fuzz.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/caddyconfig/caddyfile/formatter_fuzz.go b/caddyconfig/caddyfile/formatter_fuzz.go index 8be0634..b1bbd84 100644 --- a/caddyconfig/caddyfile/formatter_fuzz.go +++ b/caddyconfig/caddyfile/formatter_fuzz.go @@ -16,9 +16,11 @@ package caddyfile +import "bytes" + func FuzzFormat(input []byte) int { formatted := Format(input) - if formatted != Format(formatted) { + if bytes.Equal(formatted, Format(formatted)) { return 1 } return 0 |