Skip to content

Commit

Permalink
Extracted path.sep to variable
Browse files Browse the repository at this point in the history
  • Loading branch information
SwinX committed Aug 3, 2015
1 parent 1ecb95c commit 38c5237
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/config/node-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
var path = require('path');
var inherit = require('inherit');
var ModeConfig = require('./mode-config');
var sep = path.sep;

/**
* NodeConfig передается в коллбэки при объявлении ноды (ProjectConfig::node)
Expand Down Expand Up @@ -90,7 +91,7 @@ module.exports = inherit(require('./configurable'), /** @lends NodeConfig.protot
* @returns {String}
*/
getNodePath: function () {
return this._root + path.sep + this._path;
return this._root + sep + this._path;
},

/**
Expand All @@ -99,7 +100,7 @@ module.exports = inherit(require('./configurable'), /** @lends NodeConfig.protot
* @returns {String}
*/
resolvePath: function (path) {
return this._root + path.sep + this._path + (path ? path.sep + path : '');
return this._root + sep + this._path + (path ? sep + path : '');
},

_processTarget: function (target) {
Expand Down

0 comments on commit 38c5237

Please sign in to comment.