This commit is contained in:
Takuro Wada
2019-06-23 19:43:49 +09:00
parent 158f754f18
commit 297812ec11

View File

@@ -137,6 +137,9 @@ func (o *removeMetadataOptions) convertToArray(arg string) ([]string, error) {
result := make([]string, 0, len(inputs))
for _, input := range inputs {
if len(input) == 0 {
return nil, o.makeError(input, "name is empty")
}
result = append(result, input)
}
return result, nil