Skip to content

Commit 862b438

Browse files
fix: remove unnecessary check
1 parent 2720adb commit 862b438

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/numbers/format-number.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function formatNumber(number, format = NUMBER_PLACEHOLDER, locale
1818

1919
let result;
2020
if (options) {
21-
const style = (options || {}).style || DECIMAL;
21+
const style = options.style || DECIMAL;
2222
result = standardNumberFormat(number, Object.assign({}, info.numbers[style], options), info);
2323
} else {
2424
result = customNumberFormat(number, format, info);

0 commit comments

Comments
 (0)