chore(lint): remove custom min and max functions

These are now available as builtins.
This commit is contained in:
Andrey Nering
2025-03-20 10:42:52 -03:00
parent 76433f7143
commit fff86382cc
8 changed files with 9 additions and 102 deletions
+3 -10
View File
@@ -188,10 +188,10 @@ func newStack() stack {
}
}
func (m *Model) pushView(selected, min, max int) {
func (m *Model) pushView(selected, minimum, maximum int) {
m.selectedStack.Push(selected)
m.minStack.Push(min)
m.maxStack.Push(max)
m.minStack.Push(minimum)
m.maxStack.Push(maximum)
}
func (m *Model) popView() (int, int, int) {
@@ -507,10 +507,3 @@ func (m Model) canSelect(file string) bool {
}
return false
}
func max(a, b int) int {
if a > b {
return a
}
return b
}