diff --git a/src/android/com/outsystems/plugins/healthfitness/OSHealthFitness.kt b/src/android/com/outsystems/plugins/healthfitness/OSHealthFitness.kt index acebddd1..c29afb39 100755 --- a/src/android/com/outsystems/plugins/healthfitness/OSHealthFitness.kt +++ b/src/android/com/outsystems/plugins/healthfitness/OSHealthFitness.kt @@ -284,8 +284,8 @@ class OSHealthFitness : CordovaImplementation() { { sendPluginResult("success", null) }, - {error -> - sendPluginResult(null, Pair(error.code.toString(), error.message)) + { + sendPluginResult(null, Pair(it.code.toString(), it.message)) } ) }