Skip to content

Commit 5f6b89e

Browse files
author
Christopher Willis-Ford
committed
Simplify unnecessarily complicated loop
1 parent 1fd9a1f commit 5f6b89e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/library/library.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ const getAssetTypeForFileExtension = function (fileExtension) {
3939
sensitivity: 'accent',
4040
usage: 'search'
4141
};
42-
for (const assetTypeId of Object.keys(storage.AssetType)) {
42+
for (const assetTypeId in storage.AssetType) {
4343
const assetType = storage.AssetType[assetTypeId];
4444
if (fileExtension.localeCompare(assetType.runtimeFormat, compareOptions) === 0) {
4545
return assetType;

0 commit comments

Comments
 (0)