Skip to content

Commit

Permalink
fix syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
trashmai committed Nov 20, 2018
1 parent cc42118 commit ac2cb3f
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
8 changes: 3 additions & 5 deletions common/mixins/accessControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,7 @@ module.exports = function(Model, options) {
for (const loc_id in uniqueLocationMd5Projects) {
if (uniqueLocationMd5Projects.hasOwnProperty(loc_id)) {
uniqueLocationMd5s.push({loc_id, projectTitle: uniqueLocationMd5Projects[loc_id]});
});
}
}
}

// usage example:
Expand Down Expand Up @@ -329,9 +328,8 @@ module.exports = function(Model, options) {

});

});
});
else {
});
} else {
next();
}
break;
Expand Down
8 changes: 1 addition & 7 deletions common/mixins/bulkNormalize.js
Original file line number Diff line number Diff line change
Expand Up @@ -319,13 +319,7 @@ let prefixParts = Model.definition.name,
defaultValue = defProps[propName].default;
}

if (instance[propName] === undefined)
instance[propName] =
defaultValue !== undefined
? defaultValue
: typeof defaultFn === 'function'
defaultFn() :
undefined;
if (instance[propName] === undefined) instance[propName] = ((defaultValue !== undefined) ? defaultValue : ((typeof defaultFn === 'function') ? defaultFn() : undefined));

// console.log("XXXXXXXXXXXXXXXX " + defProps[propName]);
}
Expand Down
4 changes: 2 additions & 2 deletions common/models/multimedia-annotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,8 @@ module.exports = function(MultimediaAnnotation) {
else {
callback(null, null);
}
},

}
);

});
};
Expand Down

0 comments on commit ac2cb3f

Please sign in to comment.