Skip to content

Commit 6655259

Browse files
Update plugins/output/adapt/importsource.js
Co-Authored-By: tomgreenfield <tomgreenfield@users.noreply.github.com>
1 parent ec8abaf commit 6655259

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

plugins/output/adapt/importsource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -628,7 +628,7 @@ function ImportSource(req, done) {
628628
}
629629
var assetBaseName = path.basename(data);
630630
// get asset _id from lookup of the key of metadata.assetNameMap mapped to assetBaseName
631-
var matchingAssetId = _.findKey(metadata.assetNameMap, (value, assetId) => { return (value == assetBaseName) ? assetId : false });
631+
var matchingAssetId = _.findKey(metadata.assetNameMap, value => value === assetBaseName);
632632

633633
if (!matchingAssetId) return callback();
634634

0 commit comments

Comments
 (0)