diff --git a/tabby-electron/src/shells/wsl.ts b/tabby-electron/src/shells/wsl.ts index 72f3b34af8..bf6bfd34e5 100644 --- a/tabby-electron/src/shells/wsl.ts +++ b/tabby-electron/src/shells/wsl.ts @@ -56,14 +56,7 @@ export class WSLShellProvider extends ShellProvider { }) } - private _resolveIcon (defaultDistKey: any): Promise { - return this._resolveIconInner(defaultDistKey).catch(e => { - console.error('Failed to resolve icon for WSL distribution:', defaultDistKey, e) - return wslIconMap.Linux - }) - } - - private async _resolveIconInner (defaultDistKey: any): Promise { + private async _resolveIcon (defaultDistKey: any): Promise { let _icon = wslIconMap.Linux // check if the register has PackageFamilyName