Skip to content

Commit fb4820e

Browse files
toblijleyba
authored andcommitted
Replace custom PATH_SEPARATOR with path.delimiter.
Signed-off-by: Jason Leyba <[email protected]>
1 parent 5c4d78b commit fb4820e

File tree

1 file changed

+1
-3
lines changed
  • javascript/node/selenium-webdriver/io

1 file changed

+1
-3
lines changed

Diff for: javascript/node/selenium-webdriver/io/index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@ var fs = require('fs'),
2323
var promise = require('..').promise;
2424

2525

26-
var PATH_SEPARATOR = process.platform === 'win32' ? ';' : ':';
27-
2826

2927
// PUBLIC API
3028

@@ -211,7 +209,7 @@ exports.findInPath = function(file, opt_checkCwd) {
211209
}
212210
}
213211

214-
var dirs = process.env['PATH'].split(PATH_SEPARATOR);
212+
var dirs = process.env['PATH'].split(path.delimiter);
215213
var found = null;
216214
dirs.forEach(function(dir) {
217215
var tmp = path.join(dir, file);

0 commit comments

Comments
 (0)