Skip to content

Commit

Permalink
fix(auth, android): remove unecessary error type guarding (#12816)
Browse files Browse the repository at this point in the history
* fix(auth, android): remove unecessary error type guarding

* format
  • Loading branch information
Lyokone committed May 22, 2024
1 parent 3241c0b commit 7d4c200
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.util.List;
import java.util.Map;
import java.util.UUID;
import java.util.concurrent.ExecutionException;

public class FlutterFirebaseAuthPluginException {

Expand Down Expand Up @@ -66,10 +65,6 @@ static GeneratedAndroidFirebaseAuth.FlutterError parserExceptionToFlutter(
multiFactorException.getErrorCode(), multiFactorException.getLocalizedMessage(), output);
}

if (nativeException instanceof ExecutionException) {
return FlutterFirebaseAuthPluginException.noSuchProvider();
}

if (nativeException instanceof FirebaseNetworkException
|| (nativeException.getCause() != null
&& nativeException.getCause() instanceof FirebaseNetworkException)) {
Expand Down

0 comments on commit 7d4c200

Please sign in to comment.