Skip to content

Commit

Permalink
Merge pull request #508 from joetam/master
Browse files Browse the repository at this point in the history
fix build issue in JSONHandler
  • Loading branch information
zihejia authored Jan 24, 2022
2 parents bb8b6ef + 3d392ca commit 8d9f15b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/JSONHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ class JSONHandler {
class func encodeAPIData(_ obj: MPObjectToParse) -> String? {
let data: Data? = serializeJSONObject(obj)

guard let data = data else {
guard let d = data else {
Logger.warn(message: "couldn't serialize object")
return nil
}

return String(decoding: data, as: UTF8.self)
return String(decoding: d, as: UTF8.self)
}

class func deserializeData(_ data: Data) -> MPObjectToParse? {
Expand Down

0 comments on commit 8d9f15b

Please sign in to comment.