remove unused code
This commit is contained in:
12
flag.go
12
flag.go
@@ -649,18 +649,6 @@ func withEnvHint(envVar, str string) string {
|
|||||||
return str + envText
|
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 {
|
func withFileHint(filePath, str string) string {
|
||||||
fileText := ""
|
fileText := ""
|
||||||
if filePath != "" {
|
if filePath != "" {
|
||||||
|
Reference in New Issue
Block a user