Skip to content

Commit 9ee5f6c

Browse files
committed
test: remove unused outerCloseOffset variable in nested range test
https://claude.ai/code/session_018GsQpm14NmJL1XfxvLnGY1
1 parent 8161d44 commit 9ee5f6c

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

internal/rules/duplicatedcontent/rule_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -811,7 +811,6 @@ func TestGeneratedRanges_NestedSameNamePair(t *testing.T) {
811811
// the outer close, so both "before inner" and "after inner" are inside it.
812812
beforeInnerOffset := strings.Index(src, "before inner")
813813
afterInnerOffset := strings.Index(src, "after inner")
814-
outerCloseOffset := strings.Index(src, "<?/include?>\n")
815814
// Find the *last* <?/include?> — that's the outer close.
816815
lastCloseOffset := strings.LastIndex(src, "<?/include?>")
817816
assert.LessOrEqual(t, ranges[0][0], beforeInnerOffset,
@@ -820,7 +819,6 @@ func TestGeneratedRanges_NestedSameNamePair(t *testing.T) {
820819
"range end must be after 'after inner'")
821820
assert.Equal(t, lastCloseOffset, ranges[0][1],
822821
"range end must point to the outer <?/include?> marker")
823-
_ = outerCloseOffset // suppress unused warning
824822
}
825823

826824
func TestCheck_SkipsNestedIncludeGeneratedSection(t *testing.T) {

0 commit comments

Comments
 (0)