Skip to content

Commit

Permalink
fix(core): fixed analyzer issues
Browse files Browse the repository at this point in the history
  • Loading branch information
payam-zahedi committed Nov 27, 2022
1 parent 12f2e13 commit e2ec639
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/core/commas/commas.dart
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ String addCommas(Object number) {
String decimalPart;
try {
decimalPart = '.${decimalNumber[1]}';
} on RangeError catch (e) {
} on RangeError catch (_) {
decimalPart = '';
}
return integerPart + decimalPart;
Expand Down
2 changes: 2 additions & 0 deletions lib/src/core/phone_number/phone_number.dart
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ OperatorDetail? getPhoneNumberDetail(String phoneNumber) {

return operators[prefix];
}

return null;
}

/// validate phone number and returns true if the given String phone number matched with pattern
Expand Down

0 comments on commit e2ec639

Please sign in to comment.