From 83bd50c8232a062e49fe934f50cef699d220cca0 Mon Sep 17 00:00:00 2001 From: Mikey Sleevi Date: Wed, 25 Feb 2026 07:26:36 -0700 Subject: [PATCH] Fix concatenating assign and increment eslint is unable to understand what that line does. --- lib/builder/results.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/builder/results.ts b/lib/builder/results.ts index 77bad09..bbfb271 100644 --- a/lib/builder/results.ts +++ b/lib/builder/results.ts @@ -23,7 +23,8 @@ export default class Results { public addQuery(identifier: string, query: string): Results { if (!this.currentTemplates.query.has(identifier)) { this.currentTemplates.query.add(identifier); - this.result += query += "\n\n"; + this.result += query; + this.result += "\n\n"; } return this; } @@ -37,7 +38,8 @@ export default class Results { public addFragment(identifier: string, fragment: string): Results { if (!this.currentTemplates.fragment.has(identifier)) { this.currentTemplates.fragment.add(identifier); - this.result += fragment += "\n\n"; + this.result += fragment; + this.result += "\n\n"; } return this; }