Skip to content

Commit 506325e

Browse files
kkegithub-actions[bot]
authored andcommitted
Remove unused prepareEnvVars function
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)
1 parent 8964a18 commit 506325e

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

pkg/install/service.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package install
1818

1919
import (
2020
"fmt"
21-
"strings"
2221

2322
"github.com/kardianos/service"
2423
"github.com/sirupsen/logrus"
@@ -158,16 +157,3 @@ func GetServiceConfig(role string) *service.Config {
158157
Description: k0sDescription,
159158
}
160159
}
161-
162-
func prepareEnvVars(envVars []string) map[string]string {
163-
result := make(map[string]string)
164-
for _, envVar := range envVars {
165-
parts := strings.SplitN(envVar, "=", 1)
166-
if len(parts) != 2 {
167-
continue
168-
}
169-
170-
result[parts[0]] = parts[1]
171-
}
172-
return result
173-
}

0 commit comments

Comments
 (0)