Skip to content
Snippets Groups Projects
Commit 5f6b89ec authored by Christopher Willis-Ford's avatar Christopher Willis-Ford
Browse files

Simplify unnecessarily complicated loop

parent 1fd9a1f6
Branches
Tags
No related merge requests found
......@@ -39,7 +39,7 @@ const getAssetTypeForFileExtension = function (fileExtension) {
sensitivity: 'accent',
usage: 'search'
};
for (const assetTypeId of Object.keys(storage.AssetType)) {
for (const assetTypeId in storage.AssetType) {
const assetType = storage.AssetType[assetTypeId];
if (fileExtension.localeCompare(assetType.runtimeFormat, compareOptions) === 0) {
return assetType;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment