Skip to content

Commit e729228

Browse files
authored
lint: fix lint for newer go versions (#540)
1 parent adfd49d commit e729228

File tree

3 files changed

+0
-37
lines changed

3 files changed

+0
-37
lines changed

style.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -565,20 +565,6 @@ func pad(str string, n int, style *termenv.Style) string {
565565
return b.String()
566566
}
567567

568-
func max(a, b int) int { //nolint:unparam,predeclared
569-
if a > b {
570-
return a
571-
}
572-
return b
573-
}
574-
575-
func min(a, b int) int { //nolint:predeclared
576-
if a < b {
577-
return a
578-
}
579-
return b
580-
}
581-
582568
func abs(a int) int {
583569
if a < 0 {
584570
return -a

table/util.go

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,6 @@ func btoi(b bool) int {
1212
return 0
1313
}
1414

15-
// max returns the greater of two integers.
16-
func max(a, b int) int { //nolint:predeclared
17-
if a > b {
18-
return a
19-
}
20-
return b
21-
}
22-
23-
// min returns the smaller of two integers.
24-
func min(a, b int) int { //nolint:predeclared
25-
if a < b {
26-
return a
27-
}
28-
return b
29-
}
30-
3115
// sum returns the sum of all integers in a slice.
3216
func sum(n []int) int {
3317
var sum int

tree/renderer.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,3 @@ func (r *renderer) render(node Node, root bool, prefix string) string {
138138
}
139139
return strings.Join(strs, "\n")
140140
}
141-
142-
func max(a, b int) int {
143-
if a > b {
144-
return a
145-
}
146-
return b
147-
}

0 commit comments

Comments
 (0)