Skip to content

Commit b5b5b8e

Browse files
daniel-lxsroomote
authored andcommitted
refactor: optimize postStateToWebview by removing unnecessary await for postMessageToWebview calls
1 parent 72bdae1 commit b5b5b8e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/core/webview/ClineProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1558,11 +1558,11 @@ export class ClineProvider
15581558

15591559
async postStateToWebview() {
15601560
const state = await this.getStateToPostToWebview()
1561-
await this.postMessageToWebview({ type: "state", state })
1561+
this.postMessageToWebview({ type: "state", state })
15621562

15631563
// Check MDM compliance and send user to account tab if not compliant
15641564
if (!this.checkMdmCompliance()) {
1565-
await this.postMessageToWebview({ type: "action", action: "accountButtonClicked" })
1565+
this.postMessageToWebview({ type: "action", action: "accountButtonClicked" })
15661566
}
15671567
}
15681568

0 commit comments

Comments
 (0)