remove unused code
This commit is contained in:
parent
d8985dc6d5
commit
7ce0af189e
12
flag.go
12
flag.go
@ -649,18 +649,6 @@ func withEnvHint(envVar, str string) string {
|
||||
return str + envText
|
||||
}
|
||||
|
||||
func withRequiredHint(isRequired bool, str string) string {
|
||||
if isRequired {
|
||||
return str + " (required)"
|
||||
}
|
||||
|
||||
return str
|
||||
}
|
||||
|
||||
func withHints(envVar string, isRequired bool, str string) string {
|
||||
return withRequiredHint(isRequired, withEnvHint(envVar, str))
|
||||
}
|
||||
|
||||
func withFileHint(filePath, str string) string {
|
||||
fileText := ""
|
||||
if filePath != "" {
|
||||
|
Loading…
Reference in New Issue
Block a user