Skip to content

Commit

Permalink
fix(firebase_core): Fix FirebaseException error code bug by making …
Browse files Browse the repository at this point in the history
…default value: "unknown". (#6897)

Co-authored-by: Russell Wheatley <russellwheatley85@gmail.com>
  • Loading branch information
hyungtaecf and russellwheatley committed Jan 12, 2022
1 parent cf59bd3 commit 48fed37
Showing 1 changed file with 3 additions and 2 deletions.
Expand Up @@ -30,9 +30,10 @@ class FirebaseException implements Exception {
FirebaseException({
required this.plugin,
this.message,
this.code = 'unknown',
String? code,
this.stackTrace,
});
// ignore: unnecessary_this
}) : this.code = code ?? 'unknown';

/// The plugin the exception is for.
///
Expand Down

0 comments on commit 48fed37

Please sign in to comment.