Skip to content

Commit

Permalink
Fix the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmcgary committed Oct 30, 2024
1 parent df61fad commit 2a7181e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions internal/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,6 @@ const (
ENV_PREFIX = "SIDECAR"
)

func parseListEnvVar(envVar string) []string {
if envVar == "" {
return []string{}
}
// split on commas
stringList := strings.Split(envVar, ",")

for i, s := range stringList {
stringList[i] = strings.TrimSpace(s)
}
l := make([]string, 0)
for _, s := range stringList {
if s != "" {
l = append(l, s)
}
}
return l
}

func normalizeFlagName(name string) string {
return strings.ReplaceAll(name, "-", "_")
}
Expand Down

0 comments on commit 2a7181e

Please sign in to comment.