From bd33cc1a75854476236ad17104b333cdb24a9e54 Mon Sep 17 00:00:00 2001 From: Ned Palacios Date: Thu, 14 Mar 2024 00:43:56 +0800 Subject: [PATCH] fix(error_templates/java): remove negative idx check in getSpaceBoundaryIndiv --- error_templates/java/java.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/error_templates/java/java.go b/error_templates/java/java.go index cf1a45c..7cefec4 100644 --- a/error_templates/java/java.go +++ b/error_templates/java/java.go @@ -196,13 +196,6 @@ func getSpaceBoundaryIndiv(line string, idx int, defaultDirection spaceComputeDi // if idx is less than 0, return the current index if idx-1 < 0 { - // check if the index next to the current index is a space - // if it is, then we go to the reverse direction to get the nearest space - if isSpace(line, idx+1) { - newIdx := getSpaceBoundaryIndiv(line, idx, spaceComputeDirectionRight) - return newIdx - } - return idx }