Skip to content

Commit

Permalink
Remove unused prepareEnvVars function
Browse files Browse the repository at this point in the history
There are no references to this function. The linter catches is as
unused.

Signed-off-by: Kimmo Lehto <[email protected]>
  • Loading branch information
kke committed Sep 26, 2024
1 parent 2a7e7ae commit 416c9ff
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions pkg/install/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ package install
import (
"errors"
"fmt"
"strings"

"github.com/kardianos/service"
"github.com/sirupsen/logrus"
Expand Down Expand Up @@ -159,16 +158,3 @@ func GetServiceConfig(role string) *service.Config {
Description: k0sDescription,
}
}

func prepareEnvVars(envVars []string) map[string]string {
result := make(map[string]string)
for _, envVar := range envVars {
parts := strings.SplitN(envVar, "=", 1)
if len(parts) != 2 {
continue
}

result[parts[0]] = parts[1]
}
return result
}

0 comments on commit 416c9ff

Please sign in to comment.