Skip to content

Commit

Permalink
Remove redundant invokeLater
Browse files Browse the repository at this point in the history
  • Loading branch information
mkondratek committed Jan 31, 2024
1 parent 4e48c47 commit 4e10c98
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import com.intellij.notification.NotificationType
import com.intellij.notification.impl.NotificationFullContent
import com.intellij.openapi.actionSystem.AnAction
import com.intellij.openapi.actionSystem.AnActionEvent
import com.intellij.openapi.application.ApplicationManager
import com.intellij.openapi.project.DumbAwareAction
import com.intellij.openapi.project.Project
import com.sourcegraph.Icons
Expand Down Expand Up @@ -77,9 +76,7 @@ private constructor(title: String, content: String, shouldShowUpgradeOption: Boo
else -> CodyBundle.getString("UpgradeToCodyProNotification.title.explain")
}

ApplicationManager.getApplication().invokeLater {
UpgradeToCodyProNotification(title, content, shouldShowUpgradeOption).notify(project)
}
UpgradeToCodyProNotification(title, content, shouldShowUpgradeOption).notify(project)
}
}

Expand Down

0 comments on commit 4e10c98

Please sign in to comment.