mirror of
https://github.com/charmbracelet/gum.git
synced 2024-09-11 14:35:30 +03: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
|
return matches
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//nolint:unparam
|
||||||
func clamp(min, max, val int) int {
|
func clamp(min, max, val int) int {
|
||||||
if val < min {
|
if val < min {
|
||||||
return min
|
return min
|
||||||
|
Loading…
Reference in New Issue
Block a user