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 8964a18 commit 506325e
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 @@ -18,7 +18,6 @@ package install

import (
"fmt"
"strings"

"github.com/kardianos/service"
"github.com/sirupsen/logrus"
Expand Down Expand Up @@ -158,16 +157,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 506325e

Please sign in to comment.