Skip to content

Commit

Permalink
Limit prettyPrinted JSON to the debug build
Browse files Browse the repository at this point in the history
  • Loading branch information
knovichikhin committed Mar 26, 2023
1 parent b26d490 commit 0cb764a
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ private func createEncoder() -> JSONEncoder {
jsonEncoder.dateEncodingStrategy = .iso8601
}

jsonEncoder.outputFormatting = .prettyPrinted
#if DEBUG
jsonEncoder.outputFormatting = .prettyPrinted
#endif

return jsonEncoder
}
Expand Down

0 comments on commit 0cb764a

Please sign in to comment.