mirror of
https://github.com/charmbracelet/gum
synced 2024-05-13 19:56:38 +02:00
lint: fix lint error unparam on clamp
This commit is contained in:
parent
c9fe558a44
commit
808f879996
|
@ -177,6 +177,7 @@ func matchAll(options []string) []fuzzy.Match {
|
|||
return matches
|
||||
}
|
||||
|
||||
//nolint:unparam
|
||||
func clamp(min, max, val int) int {
|
||||
if val < min {
|
||||
return min
|
||||
|
|
Loading…
Reference in a new issue