unnecessary property check

v1.18.x
psychobunny 11 years ago
parent be21e11b69
commit 533659e2fd

@ -185,7 +185,6 @@ var fs = require('fs'),
}
function mapStaticDirs(mappedPath) {
if (pluginData.staticDirs.hasOwnProperty(mappedPath)) {
if (Plugins.staticDirs[mappedPath]) {
winston.warn('[plugins/' + pluginData.id + '] Mapped path (' + mappedPath + ') already specified!');
} else if (!validMappedPath.test(mappedPath)) {
@ -205,7 +204,6 @@ var fs = require('fs'),
}(staticDir));
}
}
}
for(var key in pluginData.staticDirs) {
if (pluginData.staticDirs.hasOwnProperty(key)) {

Loading…
Cancel
Save