mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-16 23:29:21 +00:00
remove punctuation from the end of an error string
This commit is contained in:
parent
9fe2a62b90
commit
16d68b6f6a
@ -233,7 +233,7 @@ func getName(params map[string]string) (string, error) {
|
||||
if !found || len(name) == 0 {
|
||||
name, found = params["default-name"]
|
||||
if !found || len(name) == 0 {
|
||||
return "", fmt.Errorf("'name' is a required parameter.")
|
||||
return "", fmt.Errorf("'name' is a required parameter")
|
||||
}
|
||||
}
|
||||
return name, nil
|
||||
|
Loading…
Reference in New Issue
Block a user