macos: only query default shell once

This commit is contained in:
Eugene Pankov
2021-03-02 22:55:06 +01:00
parent 1c81baa6f2
commit eb9826fb2a

View File

@@ -33,10 +33,6 @@ export class MacOSDefaultShellProvider extends ShellProvider {
private async getDefaultShellCached () {
if (!this.cachedShell) {
this.cachedShell = await this.getDefaultShell()
} else {
this.getDefaultShell().then(shell => {
this.cachedShell = shell
})
}
return this.cachedShell!
}