Suppress TooGenericExceptionCaught for NimbusApi.withExperiment
This commit is contained in:
parent
5981a92148
commit
68a761388a
|
@ -29,6 +29,7 @@ fun <T> NimbusApi.withExperiment(featureId: FeatureId, transform: (String?) -> T
|
|||
*
|
||||
* Short-hand for ` org.mozilla.experiments.nimbus.NimbusApi.getExperimentBranch`.
|
||||
*/
|
||||
@Suppress("TooGenericExceptionCaught")
|
||||
fun NimbusApi.withExperiment(featureId: FeatureId) =
|
||||
try {
|
||||
getExperimentBranch(featureId.jsonName)
|
||||
|
|
Loading…
Reference in New Issue