Skip to content

Commit 7fda70e

Browse files
fix: remove post increment
1 parent 4d8531e commit 7fda70e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/image.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const guessMimeTypeFromBase64 = (base64String) => {
1313
const binaryStr = atob(base64String.substring(0, 50)); // Decode a portion to check magic numbers
1414

1515
const byteArr = new Uint8Array(binaryStr.length);
16-
for (let i = 0; i < binaryStr.length; i++) {
16+
for (let i = 0; i < binaryStr.length; i += 1) {
1717
byteArr[i] = binaryStr.charCodeAt(i);
1818
}
1919

0 commit comments

Comments
 (0)