mirror of https://github.com/docker/docs.git
Merge pull request #6489 from vieux/fix_mflags_panic
prevent panic when empty flag
This commit is contained in:
commit
3336bdf5b5
|
@ -778,6 +778,9 @@ func (f *FlagSet) usage() {
|
|||
}
|
||||
|
||||
func trimQuotes(str string) string {
|
||||
if len(str) == 0 {
|
||||
return str
|
||||
}
|
||||
type quote struct {
|
||||
start, end byte
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue