Replace utils Min, Max with builtin min, max

This commit is contained in:
Marcel Meyer authored and Junegunn Choi committed 2025-12-23 09:14:33 +09:00
1 parent 603240122e
commit 14b5e1d88c
13 files changed
+93 -196

No files matched your search

+3 -3
View File
@@ -42,9 +42,9 @@ func buildResult(item *Item, offsets []Offset, score int) Result {
for _, offset := range offsets {
b, e := int(offset[0]), int(offset[1])
if b < e {
minBegin = util.Min(b, minBegin)
minEnd = util.Min(e, minEnd)
maxEnd = util.Max(e, maxEnd)
minBegin = min(b, minBegin)
minEnd = min(e, minEnd)
maxEnd = max(e, maxEnd)
validOffsetFound = true
}
}