Files
podman/vendor/github.com/vbauerster/mpb/v8/internal/width.go
renovate[bot] 9d18a48803 fix(deps): update module github.com/vbauerster/mpb/v8 to v8.7.3
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-09 23:28:27 +00:00

11 lines
249 B
Go

package internal
// CheckRequestedWidth checks that requested width doesn't overflow
// available width
func CheckRequestedWidth(requested, available int) int {
if requested < 1 || requested > available {
return available
}
return requested
}