Skip to content

Commit 25c97f8

Browse files
committed
Fix minor bug
1 parent f160786 commit 25c97f8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/default_cmd.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ exports.builder = (y: any) => {
1414
});
1515
};
1616
exports.handler = async(argv: any) => {
17-
const cwd = path.resolve(argv.cwd) as string || process.cwd();
17+
const cwd = argv.cwd ? path.resolve(argv.cwd) : process.cwd();
1818

1919
if (!fs.pathExistsSync(`${cwd}`)) {
2020
process.stdout.write(`${cwd} is not a directory\n`);

0 commit comments

Comments
 (0)