File tree Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Expand file tree Collapse file tree 2 files changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -285,13 +285,9 @@ public class SwiftPackageTool: SwiftTool<PackageToolOptions> {
285
285
286
286
let encoder = JSONEncoder ( )
287
287
encoder. userInfo [ Manifest . dumpPackageKey] = true
288
- #if os(macOS)
289
288
if #available( OSX 10 . 13 , * ) {
290
289
encoder. outputFormatting = [ . prettyPrinted, . sortedKeys]
291
290
}
292
- #else
293
- encoder. outputFormatting = [ . prettyPrinted, . sortedKeys]
294
- #endif
295
291
296
292
let jsonData = try encoder. encode ( manifest)
297
293
let jsonString = String ( data: jsonData, encoding: . utf8) !
Original file line number Diff line number Diff line change @@ -198,13 +198,9 @@ private func fromBytes<T: Decodable>(_ bytes: [UInt8]) throws -> T {
198
198
199
199
private func toBytes< T: Encodable > ( _ value: T ) throws -> [ UInt8 ] {
200
200
let encoder = JSONEncoder ( )
201
- #if os(macOS)
202
201
if #available( OSX 10 . 13 , * ) {
203
202
encoder. outputFormatting = [ . sortedKeys]
204
203
}
205
- #else
206
- encoder. outputFormatting = [ . sortedKeys]
207
- #endif
208
204
let encoded = try encoder. encode ( value)
209
205
return [ UInt8] ( encoded)
210
206
}
You can’t perform that action at this time.
0 commit comments