From 5f6b89ec2a29983a7fc86dca2eac04a93944372a Mon Sep 17 00:00:00 2001 From: Christopher Willis-Ford Date: Mon, 18 Mar 2019 12:07:41 -0700 Subject: [PATCH] Simplify unnecessarily complicated loop --- src/components/library/library.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/library/library.jsx b/src/components/library/library.jsx index 6b0c8ac3b..89e820f1b 100644 --- a/src/components/library/library.jsx +++ b/src/components/library/library.jsx @@ -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;