Skip to content

Commit

Permalink
Replace assertionFailure with debugPrint to stop assertions while…
Browse files Browse the repository at this point in the history
… debugging if a nil action block was passed in on purpose. (#2005)
  • Loading branch information
designatednerd authored Oct 26, 2021
1 parent a11ed58 commit 98c52cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Apollo/DispatchQueue+Optional.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public extension ApolloExtension where Base == DispatchQueue {
action(result)
}
} else if case .failure(let error) = result {
assertionFailure("Encountered failure result, but no completion handler was defined to handle it: \(error)")
debugPrint("Apollo: Encountered failure result, but no completion handler was defined to handle it: \(error)")
}
}
}

0 comments on commit 98c52cc

Please sign in to comment.