Skip to content

Commit

Permalink
revert ParseTypeable description due to failures
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaker6 committed Jun 24, 2024
1 parent 8132c64 commit 549cc59
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Sources/ParseSwift/Protocols/ParseTypeable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,11 @@ public protocol ParseTypeable: Codable,
// MARK: CustomDebugStringConvertible
extension ParseTypeable {
public var debugDescription: String {
guard let descriptionData = try? ParseCoding.jsonEncoder().encode(self) else {
return "()"
guard let descriptionData = try? ParseCoding.jsonEncoder().encode(self),
let descriptionString = String(data: descriptionData, encoding: .utf8) else {
return "()"
}
let descriptionString = String(decoding: descriptionData, as: UTF8.self)

return "\(descriptionString)"
}
}
Expand Down

0 comments on commit 549cc59

Please sign in to comment.