mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-22 16:27:51 +00:00
8 lines
228 B
Go
8 lines
228 B
Go
package internal
|
|
|
|
import "cmp"
|
|
|
|
// CheckRequestedWidth checks that requested width doesn't overflow available width
|
|
func CheckRequestedWidth(requested, available int) int {
|
|
return min(cmp.Or(requested, available), available)
|
|
}
|