Skip to content

Commit

Permalink
JSON deserialisation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsochantaris committed Jul 10, 2023
1 parent c68cd7f commit 3477e9a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Shared/HTTP.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ enum HTTP {
if case .success = result, Settings.dumpAPIResponsesInConsole {
DLog("API data from \(request.url): \(data.description)")
}
let json = try data.withVeryUnsafeBytes { try TrailerJson.parse(bytes: $0) as? JSON }
let json = try data.withVeryUnsafeBytes { try TrailerJson.parse(bytes: $0) }
return (json ?? NSNull(), result)
}

Expand Down
4 changes: 2 additions & 2 deletions Trailer.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1587,7 +1587,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1649;
CURRENT_PROJECT_VERSION = 1650;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
Expand Down Expand Up @@ -1651,7 +1651,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 1649;
CURRENT_PROJECT_VERSION = 1650;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEPLOYMENT_POSTPROCESSING = YES;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>PocketTrailer WidgetExtension.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>4</integer>
<integer>5</integer>
</dict>
<key>PocketTrailer.xcscheme_^#shared#^_</key>
<dict>
Expand All @@ -32,7 +32,7 @@
<key>TrailerLauncher.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>5</integer>
<integer>4</integer>
</dict>
</dict>
<key>SuppressBuildableAutocreation</key>
Expand Down

0 comments on commit 3477e9a

Please sign in to comment.