Skip to content

Commit

Permalink
Merge pull request #4 from finestructure/remove-prints
Browse files Browse the repository at this point in the history
Remove print statements
  • Loading branch information
dankinsoid committed Nov 18, 2023
2 parents dca73b6 + 8bddbd7 commit 2ee6c2a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,6 @@ private struct TypeRevisionSingleValueDecodingContainer: SingleValueDecodingCont

func decode<T: Decodable>(_ type: T.Type) throws -> T {
guard let t = _decodeIfPresent(type, optional: false) else {
print("Failed to decode \(type)")
throw AnyError()
}
return t
Expand Down Expand Up @@ -521,9 +520,6 @@ private struct TypeRevisionKeyedDecodingContainer<Key: CodingKey>: KeyedDecoding
value.isOptional = optional
result[str(key)] = value
guard let t = decodable as? T else {
if !optional {
print("Failed to decode \(type) for key \(key.stringValue)")
}
throw AnyError()
}
return t
Expand Down

0 comments on commit 2ee6c2a

Please sign in to comment.