Skip to content

Commit 3dccf60

Browse files
committed
comment
1 parent 58985b0 commit 3dccf60

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ class QWebviewBrowser(val project: Project, private val parentDisposable: Dispos
317317

318318
private fun handleListProfilesMessage() {
319319
ApplicationManager.getApplication().executeOnPooledThread {
320-
var errorMessage: String = ""
320+
var errorMessage = ""
321321
val profiles = try {
322322
QRegionProfileManager.getInstance().listRegionProfiles(project)
323323
} catch (e: Exception) {

plugins/core/webview/src/ideClient.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class IdeClient {
1717

1818
// TODO: design and improve the API here
1919

20-
prepareUi(state: any) {
20+
prepareUi(state: AuthSetupMessageFromIde | ListProfilesMessageFromIde) {
2121
WebviewTelemetry.instance.reset()
2222
console.log('browser is preparing UI with state ', state)
2323
// hack as window.onerror don't have access to vuex store
@@ -28,11 +28,11 @@ export class IdeClient {
2828

2929
switch (state.stage) {
3030
case "PROFILE_SELECT":
31-
this.handleProfileSelectMessage(state)
31+
this.handleProfileSelectMessage(state as ListProfilesMessageFromIde)
3232
break
3333

3434
default:
35-
this.handleAuthSetupMessage(state)
35+
this.handleAuthSetupMessage(state as AuthSetupMessageFromIde)
3636
}
3737
}
3838

0 commit comments

Comments
 (0)