From 206917652835a7ef18b173bfa0774291d866e945 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Wed, 27 May 2026 19:58:21 -0700 Subject: [PATCH] Fix lint --- src/common/services/DecorationService.ts | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/common/services/DecorationService.ts b/src/common/services/DecorationService.ts index 95875e54a..6db9bcf78 100644 --- a/src/common/services/DecorationService.ts +++ b/src/common/services/DecorationService.ts @@ -88,12 +88,10 @@ export class DecorationService extends Disposable implements IDecorationService if (!bucket) { return; } - let xmin = 0; - let xmax = 0; for (const d of bucket) { - xmin = d.options.x ?? 0; - xmax = xmin + (d.options.width ?? 1); - if (x >= xmin && x < xmax && (!layer || (d.options.layer ?? 'bottom') === layer)) { + $xmin = d.options.x ?? 0; + $xmax = $xmin + (d.options.width ?? 1); + if (x >= $xmin && x < $xmax && (!layer || (d.options.layer ?? 'bottom') === layer)) { yield d; } }