Alliballibaba 4 months ago
parent
commit
9cf58c4835
1 changed files with 6 additions and 6 deletions
  1. 6 6
      frankenphp.go

+ 6 - 6
frankenphp.go

@@ -334,12 +334,12 @@ func Init(options ...Option) error {
 	}
 
 	// load the os environment once
-    // prevents potential segfaults if it's is accessed from anywhere else
-    cachedEnv = make(map[string]string, len(os.Environ()))
-    for _, envVar := range os.Environ() {
-        key, val, _ := strings.Cut(envVar, "=")
-        cachedEnv[key] = val
-    }
+	// prevents potential segfaults if it's is accessed from anywhere else
+	cachedEnv = make(map[string]string, len(os.Environ()))
+	for _, envVar := range os.Environ() {
+		key, val, _ := strings.Cut(envVar, "=")
+		cachedEnv[key] = val
+	}
 
 	shutdownWG.Add(1)
 	done = make(chan struct{})