Skip to content

Commit

Permalink
chore: remove explicitly defined max functions (#613)
Browse files Browse the repository at this point in the history
* filter: remove max function

* timeout: remove max function
  • Loading branch information
MikaelFangel authored Jul 25, 2024
1 parent 5d96f84 commit b0f4413
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
7 changes: 0 additions & 7 deletions filter/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,3 @@ func clamp(min, max, val int) int {
}
return val
}

func max(a, b int) int {
if a > b {
return a
}
return b
}
7 changes: 0 additions & 7 deletions timeout/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,3 @@ func Tick(timeoutValue time.Duration, data interface{}) tea.Cmd {
func Str(timeout time.Duration) string {
return fmt.Sprintf(" (%d)", max(0, int(timeout.Seconds())))
}

func max(a, b int) int {
if a > b {
return a
}
return b
}

0 comments on commit b0f4413

Please sign in to comment.