Skip to content

Commit 49d5d97

Browse files
committed
chore: remove unnecessary null check in numFormat()
1 parent 384c157 commit 49d5d97

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

lib/utils/utils.dart

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -312,10 +312,6 @@ class Utils {
312312
}
313313

314314
static String numFormat(num number) {
315-
if (number == null) {
316-
return '0';
317-
}
318-
319315
final String res = (number / 10000).toString();
320316
if (int.parse(res.split('.')[0]) >= 1) {
321317
return '${(number / 10000).toStringAsFixed(1)}万';

0 commit comments

Comments
 (0)