Skip to content

Commit 6aa4728

Browse files
committed
refactor: optimize postStateToWebview by removing unnecessary await for postMessageToWebview calls
1 parent 7b661f9 commit 6aa4728

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
@@ -1340,11 +1340,11 @@ export class ClineProvider
13401340

13411341
async postStateToWebview() {
13421342
const state = await this.getStateToPostToWebview()
1343-
await this.postMessageToWebview({ type: "state", state })
1343+
this.postMessageToWebview({ type: "state", state })
13441344

13451345
// Check MDM compliance and send user to account tab if not compliant
13461346
if (!this.checkMdmCompliance()) {
1347-
await this.postMessageToWebview({ type: "action", action: "accountButtonClicked" })
1347+
this.postMessageToWebview({ type: "action", action: "accountButtonClicked" })
13481348
}
13491349
}
13501350

0 commit comments

Comments
 (0)