mirror of
https://github.com/kataras/iris.git
synced 2025-12-25 22:07:03 +00:00
minor improvements
This commit is contained in:
@@ -3865,9 +3865,10 @@ func WriteJSON(writer io.Writer, v interface{}, options JSON, shouldOptimize boo
|
||||
err error
|
||||
)
|
||||
|
||||
if !shouldOptimize && options.Indent == "" {
|
||||
options.Indent = " "
|
||||
}
|
||||
// Let's keep it as it is.
|
||||
// if !shouldOptimize && options.Indent == "" {
|
||||
// options.Indent = " "
|
||||
// }
|
||||
|
||||
if indent := options.Indent; indent != "" {
|
||||
if shouldOptimize {
|
||||
|
||||
Reference in New Issue
Block a user