This commit is contained in:
Eugene Pankov
2022-12-05 15:20:29 +01:00
parent 73e25ed099
commit f444aad568

View File

@@ -170,7 +170,7 @@ export class Session extends BaseSession {
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
let cwd = options.cwd || process.env.HOME
if (!fsSync.existsSync(cwd)) {
if (!fsSync.existsSync(cwd!)) {
console.warn('Ignoring non-existent CWD:', cwd)
cwd = undefined
}