From b7d89d1d99462c30be535f237f06c5bc17b291e7 Mon Sep 17 00:00:00 2001 From: U10090080 Date: Wed, 3 Apr 2024 11:01:43 +0800 Subject: [PATCH] avoid duplicate `run` under constructor --- src/cypher/result-window.class.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/cypher/result-window.class.ts b/src/cypher/result-window.class.ts index 3f83ec8..c28b309 100644 --- a/src/cypher/result-window.class.ts +++ b/src/cypher/result-window.class.ts @@ -22,8 +22,6 @@ export default class ResultWindow { ViewColumn.Two, { retainContextWhenHidden: true } ) - - this.run(method) } async run(method: Method) { @@ -52,7 +50,7 @@ export default class ResultWindow { this.panel.webview.html = getLoadingContent(this.cypher, params) // Run it - const res = await session[ method ]( + const res = await session[method]( tx => tx.run(this.cypher, params) )