Skip to content

Commit 06dbb34

Browse files
committed
Return if no assetJson
1 parent ebd7006 commit 06dbb34

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
@@ -185,7 +185,7 @@ function ImportSource(req, done) {
185185
createdBy: app.usermanager.getCurrentUser()._id
186186
};
187187

188-
if (!assetJson) helpers.importAsset(fileMeta, metadata, doneAsset);
188+
if (!assetJson) return helpers.importAsset(fileMeta, metadata, doneAsset);
189189

190190
addAssetTags(assetJson, function(error, assetTags) {
191191
const warn = (error) => logger.log('warn', `Failed to create asset tag ${error}`);

0 commit comments

Comments
 (0)