Skip to content

Commit f26ac07

Browse files
committedJun 16, 2022
Fixing assignment (sigh)
1 parent aeffb3a commit f26ac07

12 files changed

+31
-28
lines changed
 

‎lib/filesize.es6.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
*
44
* @copyright 2022 Jason Mulligan <jason.mulligan@avoidwork.com>
55
* @license BSD-3-Clause
6-
* @version 9.0.3
6+
* @version 9.0.4
77
*/
88
(function (global, factory) {
99
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -47,6 +47,10 @@
4747
result = [],
4848
val = 0,
4949
u = "";
50+
51+
// Sync base & standard
52+
base = standard === "iec" ? 10 : 2;
53+
5054
const ceil = base === 10 ? 1000 : 1024,
5155
full = fullform === true,
5256
neg = num < 0,
@@ -56,9 +60,6 @@
5660
throw new TypeError("Invalid number");
5761
}
5862

59-
// Sync base & standard
60-
base = standard === "iec" ? 10 : 2;
61-
6263
// Flipping a negative number to determine the size
6364
if (neg) {
6465
num = -num;

‎lib/filesize.es6.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎lib/filesize.es6.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)
Please sign in to comment.