mirror of
https://github.com/Eugeny/tabby.git
synced 2025-02-11 14:41:13 +08:00
lint
This commit is contained in:
parent
73e25ed099
commit
f444aad568
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user