Skip to content

Commit 866e8b9

Browse files
committed
Use strings.Trim
1 parent ddcf571 commit 866e8b9

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

docs.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -567,11 +567,7 @@ func (tabularTemplate) Prettify(s string) string {
567567
// cli.BoolFlag will always return an default.
568568
func getFlagDefaultValue(f cli.DocGenerationFlag) (value, text string) {
569569
if defaultText := f.GetDefaultText(); defaultText != "" {
570-
if _, ok := f.(*cli.StringFlag); ok {
571-
return "", strings.Trim(defaultText, "\"")
572-
} else {
573-
return "", defaultText
574-
}
570+
return "", defaultText
575571
}
576572

577573
if !f.TakesValue() {

0 commit comments

Comments
 (0)