Skip to content

Commit 1976737

Browse files
committed
I really need to stop coding when I'm tired
1 parent 4afcd2c commit 1976737

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

javascript/node/selenium-webdriver/io/index.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,9 @@ exports.exists = function(aPath) {
138138
let type = typeof aPath;
139139
if (type !== 'string') {
140140
reject(TypeError(`expected string path, but got ${type}`));
141+
} else {
142+
fs.exists(aPath, fulfill);
141143
}
142-
fs.exists(aPath, fulfill);
143144
});
144145
};
145146

0 commit comments

Comments
 (0)