Skip to content

Commit 1c1fb60

Browse files
committed
detekt
1 parent 74be353 commit 1c1fb60

File tree

1 file changed

+6
-8
lines changed
  • plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/flareChat

1 file changed

+6
-8
lines changed

plugins/amazonq/shared/jetbrains-community/src/software/aws/toolkits/jetbrains/services/amazonq/lsp/flareChat/ChatCommunicationManager.kt

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -141,20 +141,18 @@ class ChatCommunicationManager(private val cs: CoroutineScope) {
141141
val incomingType = params.authFollowupType
142142
val connectionManager = ToolkitConnectionManager.getInstance(project)
143143
try {
144-
145144
when (incomingType) {
146145
AuthFollowupType.USE_SUPPORTED_AUTH -> {
147146
val activeProfile = QRegionProfileManager.getInstance().activeProfile(project)
148-
if(activeProfile != null) {
147+
if (activeProfile != null) {
149148
project.messageBus.syncPublisher(QRegionProfileSelectedListener.TOPIC)
150149
.onProfileSelected(project, QRegionProfileManager.getInstance().activeProfile(project))
151150
} else {
152-
QRegionProfileDialog(
153-
project,
154-
selectedProfile = null
155-
).show()
156-
}
157-
151+
QRegionProfileDialog(
152+
project,
153+
selectedProfile = null
154+
).show()
155+
}
158156

159157
return
160158
}

0 commit comments

Comments
 (0)