Skip to content

Commit 86d62ac

Browse files
committed
review fix
1 parent 0ad77ea commit 86d62ac

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/kotlin/com/vk/admstorm/startup/ChangeSshBackendStartup.kt

+6-6
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,22 @@ object ChangeSshBackendStartup {
1919
}
2020

2121
fun changeConfigurationProcess(project: Project) {
22-
val prpCmp = PropertiesComponent.getInstance(project)
22+
val properties = PropertiesComponent.getInstance(project)
2323

24-
val dntShow = prpCmp.getBoolean(SSH_NOTIFICATOR_OPTION)
24+
val dntShow = properties.getBoolean(SSH_NOTIFICATOR_OPTION)
2525
if (dntShow) {
2626
LOG.info("OPENSSH option was enabled")
2727
return
2828
}
2929

3030
//TODO: Remove it after 2 month
31-
if (prpCmp.getValue(LEGACY_SSH_NOTIFICATOR_OPTION) != null) {
32-
prpCmp.unsetValue(LEGACY_SSH_NOTIFICATOR_OPTION)
31+
if (properties.isValueSet(LEGACY_SSH_NOTIFICATOR_OPTION)) {
32+
properties.unsetValue(LEGACY_SSH_NOTIFICATOR_OPTION)
3333
}
3434

3535
val sshSettingValue = AdvancedSettings.getEnum(SSH_CONFIG_BACKEND, SshConnectionConfigService.Kind::class.java)
3636
if (sshSettingValue == SshConnectionConfigService.Kind.OPENSSH) {
37-
prpCmp.setValue(SSH_NOTIFICATOR_OPTION, true)
37+
properties.setValue(SSH_NOTIFICATOR_OPTION, true)
3838
LOG.info("OPENSSH option was enabled before")
3939
return
4040
}
@@ -56,6 +56,6 @@ object ChangeSshBackendStartup {
5656
}
5757
).show(project)
5858

59-
prpCmp.setValue(LEGACY_SSH_NOTIFICATOR_OPTION, true)
59+
properties.setValue(SSH_NOTIFICATOR_OPTION, true)
6060
}
6161
}

0 commit comments

Comments
 (0)