ESlint no-useless-escape, no-else-return

This commit is contained in:
Peter Jaszkowiak
2017-02-18 14:27:26 -07:00
parent 11cb3a9554
commit 09e868ce5f
27 changed files with 86 additions and 118 deletions

View File

@@ -57,10 +57,9 @@ module.exports = function (Plugins) {
method = data.method.split('.').reduce(function (memo, prop) {
if (memo && memo[prop]) {
return memo[prop];
} else {
// Couldn't find method by path, aborting
return null;
}
// Couldn't find method by path, aborting
return null;
}, Plugins.libraries[data.id]);
// Write the actual method reference to the hookObj