From b5b5b8ea63cd63e91221281c19193b1c322077c3 Mon Sep 17 00:00:00 2001 From: Daniel Riccio Date: Fri, 1 Aug 2025 16:48:17 -0500 Subject: [PATCH] refactor: optimize postStateToWebview by removing unnecessary await for postMessageToWebview calls --- src/core/webview/ClineProvider.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/webview/ClineProvider.ts b/src/core/webview/ClineProvider.ts index 0e5ab95b39..b24c627c08 100644 --- a/src/core/webview/ClineProvider.ts +++ b/src/core/webview/ClineProvider.ts @@ -1558,11 +1558,11 @@ export class ClineProvider async postStateToWebview() { const state = await this.getStateToPostToWebview() - await this.postMessageToWebview({ type: "state", state }) + this.postMessageToWebview({ type: "state", state }) // Check MDM compliance and send user to account tab if not compliant if (!this.checkMdmCompliance()) { - await this.postMessageToWebview({ type: "action", action: "accountButtonClicked" }) + this.postMessageToWebview({ type: "action", action: "accountButtonClicked" }) } }