Bläddra i källkod

macos: only query default shell once

Eugene Pankov 4 år sedan
förälder
incheckning
eb9826fb2a
1 ändrade filer med 0 tillägg och 4 borttagningar
  1. 0 4
      terminus-terminal/src/shells/macDefault.ts

+ 0 - 4
terminus-terminal/src/shells/macDefault.ts

@@ -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!
     }