Skip to content

Commit 78f8c6b

Browse files
committed
detekt
1 parent 87ec1d9 commit 78f8c6b

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

plugins/amazonq/chat/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/toolwindow/OuterAmazonQPanel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import com.intellij.openapi.components.service
88
import com.intellij.openapi.project.Project
99
import com.intellij.ui.components.panels.Wrapper
1010
import com.intellij.util.ui.components.BorderLayoutPanel
11+
import software.aws.toolkits.core.utils.error
1112
import software.aws.toolkits.core.utils.getLogger
1213
import javax.swing.JComponent
1314

@@ -23,7 +24,7 @@ class OuterAmazonQPanel : BorderLayoutPanel() {
2324
try {
2425
wrapper.setContent(content)
2526
} catch (e: Exception) {
26-
getLogger<OuterAmazonQPanel>().error("Error while creating window")
27+
getLogger<OuterAmazonQPanel>().error { "Error while creating window" }
2728
}
2829
}
2930

plugins/core/jetbrains-community/src/software/aws/toolkits/jetbrains/core/notifications/CustomizeNotificationsUi.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ object NotificationManager {
6262
AllIcons.General.Error
6363
)
6464
} else {
65+
val link = url ?: AwsToolkit.GITHUB_URL
6566
val openLink = Messages.showYesNoDialog(
6667
project,
6768
message,
@@ -71,7 +72,7 @@ object NotificationManager {
7172
AllIcons.General.Error
7273
)
7374
if (openLink == 0) {
74-
BrowserUtil.browse(url!!)
75+
BrowserUtil.browse(link)
7576
}
7677
}
7778
}

plugins/core/jetbrains-community/tst/software/aws/toolkits/jetbrains/core/notifications/NotificationManagerTest.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class NotificationManagerTest {
3030
"UpdateExtension",
3131
NotificationFollowupActionsContent(NotificationActionDescription("title", null))
3232
)
33-
val sut = NotificationManager.createActions(projectRule.project,listOf(followupActions), "Dummy Test Action", "Dummy title")
33+
val sut = NotificationManager.createActions(projectRule.project, listOf(followupActions), "Dummy Test Action", "Dummy title")
3434
assertThat(sut).isNotNull
3535
assertThat(sut).hasSize(2)
3636
assertThat(sut.first().title).isEqualTo("Update")

plugins/toolkit/jetbrains-core/src/software/aws/toolkits/jetbrains/core/explorer/webview/OuterToolkitPanel.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import com.intellij.openapi.components.service
88
import com.intellij.openapi.project.Project
99
import com.intellij.ui.components.panels.Wrapper
1010
import com.intellij.util.ui.components.BorderLayoutPanel
11+
import software.aws.toolkits.core.utils.error
1112
import software.aws.toolkits.core.utils.getLogger
1213
import javax.swing.JComponent
1314

@@ -23,7 +24,7 @@ class OuterToolkitPanel : BorderLayoutPanel() {
2324
try {
2425
wrapper.setContent(content)
2526
} catch (e: Exception) {
26-
getLogger<OuterToolkitPanel>().error("Error while creating window")
27+
getLogger<OuterToolkitPanel>().error { "Error while creating window" }
2728
}
2829
}
2930

0 commit comments

Comments
 (0)