Skip to content
This repository has been archived by the owner on Jun 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #5164 from corona-warn-app/fix/fix-production-cras…
Browse files Browse the repository at this point in the history
…h-on-mockENAManager

Remove precondition failure for Production
  • Loading branch information
30mar committed May 1, 2023
2 parents f656428 + a1ec0b9 commit 31c18c0
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/xcode/ENA/ENA/Source/Models/Exposure/MockENManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@ final class MockENManager: NSObject {
) {
super.init()
self.diagnosisKeysResult = (keys, enError)

#if RELEASE
// This whole class would/should be wrapped in a DEBUG block. However, there were some
// issues with the handling of community and debug builds so we chose this way to prevent
// malicious usage
preconditionFailure("Don't use this mock in production!")
#endif
}

// MARK: - Activating
Expand Down

0 comments on commit 31c18c0

Please sign in to comment.