mirror of
https://github.com/docker/cli.git
synced 2026-09-24 07:25:07 -05:00
Merge pull request #6489 from vieux/fix_mflags_panic
prevent panic when empty flag Upstream-commit: 3336bdf5b5ac9753df549a8434de820c06260a65 Component: engine
This commit is contained in:
@@ -778,6 +778,9 @@ func (f *FlagSet) usage() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func trimQuotes(str string) string {
|
func trimQuotes(str string) string {
|
||||||
|
if len(str) == 0 {
|
||||||
|
return str
|
||||||
|
}
|
||||||
type quote struct {
|
type quote struct {
|
||||||
start, end byte
|
start, end byte
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user