Skip to content

Commit 98c52cc

Browse files
Replace assertionFailure with debugPrint to stop assertions while debugging if a nil action block was passed in on purpose. (#2005)
1 parent a11ed58 commit 98c52cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Sources/Apollo/DispatchQueue+Optional.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public extension ApolloExtension where Base == DispatchQueue {
2727
action(result)
2828
}
2929
} else if case .failure(let error) = result {
30-
assertionFailure("Encountered failure result, but no completion handler was defined to handle it: \(error)")
30+
debugPrint("Apollo: Encountered failure result, but no completion handler was defined to handle it: \(error)")
3131
}
3232
}
3333
}

0 commit comments

Comments
 (0)