Bug 1818059 - Update to application services version 97.0.0.

fenix/112.0
MatthewTighe 1 year ago committed by mergify[bot]
parent bd63c041d8
commit 778964a4eb

@ -84,9 +84,7 @@ fun createNimbus(context: Context, urlString: String?): NimbusApi {
*/
fun NimbusException.isReportableError(): Boolean {
return when (this) {
is NimbusException.RequestException,
is NimbusException.ResponseException,
-> false
is NimbusException.ClientException -> false
else -> true
}
}

@ -19,10 +19,8 @@ class NimbusSetupKtTest {
@Test
fun `WHEN error is non-reportable THEN return false`() {
val error1 = NimbusException.ResponseException("oops")
val error2 = NimbusException.RequestException("oops")
val error = NimbusException.ClientException("oops")
assertFalse(error1.isReportableError())
assertFalse(error2.isReportableError())
assertFalse(error.isReportableError())
}
}

Loading…
Cancel
Save