mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 19:56:01 +00:00
commit
a250eb2ccf
@ -120,7 +120,7 @@ const (
|
|||||||
)
|
)
|
||||||
|
|
||||||
// MustParse turns the given string into a quantity or panics; for tests
|
// MustParse turns the given string into a quantity or panics; for tests
|
||||||
// or others cases where you know the string is valid.
|
// or other cases where you know the string is valid.
|
||||||
func MustParse(str string) Quantity {
|
func MustParse(str string) Quantity {
|
||||||
q, err := ParseQuantity(str)
|
q, err := ParseQuantity(str)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user