From 1e93be656d81c8ca0eca457d86975ae930d64a3c Mon Sep 17 00:00:00 2001 From: Joshua Hurst Date: Mon, 14 Nov 2022 15:51:28 -0800 Subject: [PATCH] code style --- lib/range.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/range.js b/lib/range.js index 901722bc..9fddf40d 100644 --- a/lib/range.js +++ b/lib/range.js @@ -16,7 +16,7 @@ module.exports.sliceRange = (lines, startCol, endCol, inclusive = false) => { if (startCol >= lines[mid].endCol) { start = mid + 1 } else if (endCol < lines[mid].startCol) { - end = Math.max(mid - 1, start); + end = Math.max(mid - 1, start) } else { end = mid while (mid >= 0 && startCol < lines[mid].endCol && endCol >= lines[mid].startCol) {