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]>
(cherry picked from commit 416c9ff)
  • Loading branch information
kke authored and github-actions[bot] committed Sep 30, 2024
1 parent 0a8d67b commit 91c1299
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 91c1299

Please sign in to comment.