Skip to content

Commit c6cf8b7

Browse files
committed
Cannot read property 'startsWith' of undefined. Fixes gh-75
1 parent 8cc6085 commit c6cf8b7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/config.js

+4
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ class Config {
4343
}
4444

4545
resolvePath(input) {
46+
if (!input) {
47+
return input;
48+
}
49+
4650
if (input.startsWith('~/')) {
4751
return path.join(os.homedir(), input.slice(2));
4852
} else if (input === '~') {

0 commit comments

Comments
 (0)