-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unreachable Code in tab-bars.ts
#14977
Comments
@tortmayr do you know immediately what the right fix is? |
Since there already is a null-check for if ((newOverflowingTabs.length !== this.tabsOverflowData.titles.length) || ... |
But that's not equivalent in the case where `newOverflowingTabs.length is 0 and this.tabsOverflowData is undefined. |
It is, since we never reach this part of the code if theia/packages/core/src/browser/shell/tab-bars.ts Line 1229 in 3435376
|
Bug Description:
In
tab-bars.ts#1233
there is unreachable code. The line reads:But probably should read
I'm not recently familiar with the code, so not sure what the right fix is or whether this causes problems.
Additional Information
The text was updated successfully, but these errors were encountered: