use replaceall

This commit is contained in:
A.Unger
2021-07-01 15:11:34 +02:00
parent ed9359ddd4
commit 4ce54edc1a

View File

@@ -227,7 +227,7 @@ func scheduleServiceTokens(s *Service, funcSet serviceFuncMap) {
// the runtime.
func (s *Service) generateRunSet(cfg *config.Config) {
if cfg.Runtime.Extensions != "" {
e := strings.Split(strings.Replace(cfg.Runtime.Extensions, " ", "", -1), ",")
e := strings.Split(strings.ReplaceAll(cfg.Runtime.Extensions, " ", ""), ",")
for i := range e {
runset = append(runset, e[i])
}