Skip to content

Commit 6800878

Browse files
chore: remove smells
1 parent db76c76 commit 6800878

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/kotlin/io/snyk/plugin/settings/SnykProjectSettingsConfigurable.kt

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ class SnykProjectSettingsConfigurable(val project: Project) : SearchableConfigur
112112
}
113113

114114
val rescanNeeded = isCoreParamsModified()
115-
val productSelectionChanged = snykSettingsDialog.isScanTypeChanged()
116-
val severitySelectionChanged = snykSettingsDialog.isSeverityEnablementChanged()
115+
snykSettingsDialog.isScanTypeChanged()
116+
snykSettingsDialog.isSeverityEnablementChanged()
117117

118118
if (isCustomEndpointModified()) {
119119
settingsStateService.customEndpointUrl = customEndpoint
@@ -273,7 +273,7 @@ fun handleReleaseChannelChange(project: Project) {
273273
if (!pluginSettings().manageBinariesAutomatically) return
274274

275275
ApplicationManager.getApplication().invokeLater {
276-
@Suppress("CanBeVal") var notification: Notification? = null
276+
var notification: Notification? = null
277277
val downloadAction =
278278
object : AnAction("Download") {
279279
override fun actionPerformed(e: AnActionEvent) {
@@ -288,7 +288,6 @@ fun handleReleaseChannelChange(project: Project) {
288288
notification?.expire()
289289
}
290290
}
291-
@Suppress("AssignedValueIsNeverRead")
292291
notification =
293292
SnykBalloonNotificationHelper.showInfo(
294293
"You changed the release channel. Would you like to download a new Snyk CLI now?",

0 commit comments

Comments
 (0)