Skip to content

Commit

Permalink
Remove redundant state check method
Browse files Browse the repository at this point in the history
  • Loading branch information
taldekar committed Feb 12, 2025
1 parent 93a06b8 commit 99d0560
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private void refreshActiveView(final PluginState pluginState) {

if (pluginState.browserCompatibilityState() == BrowserCompatibilityState.DEPENDENCY_MISSING) {
newActiveView = AmazonQViewType.DEPENDENCY_MISSING_VIEW;
} else if (pluginState.lspState().hasFailed()) {
} else if (pluginState.lspState() == LspState.FAILED) {
newActiveView = AmazonQViewType.LSP_STARTUP_FAILED_VIEW;
} else if (pluginState.chatWebViewAssetState() == ChatWebViewAssetState.DEPENDENCY_MISSING
|| pluginState.toolkitLoginWebViewAssetState() == ToolkitLoginWebViewAssetState.DEPENDENCY_MISSING) {
Expand Down

0 comments on commit 99d0560

Please sign in to comment.