Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions clireporter/prefixedwriter.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,7 @@ func isLikelyJSON(data []byte) bool {
}

first := trimmed[0]
// JSON objects start with {, arrays with [, strings with ", and we'll be conservative
// and only format these as JSON. Standalone numbers, booleans, null shouldn't be reformatted.
return first == '{' || first == '[' || first == '"'
return first == '{'
}

func (w *PrefixedWriter) Write(p []byte) (n int, err error) {
Expand Down