fix: resolve PR2514 lint regressions

This commit is contained in:
lc6464 committed 2026-04-14 14:49:23 +08:00
1 parent 93bf871bd2
commit ae195831bb
5 files changed
+69 -13

No files matched your search

+2 -1
View File
@@ -216,7 +216,8 @@ func startGatewayAndCaptureEnv(t *testing.T, h *Handler) gatewayStartEnvSnapshot
raw, err := os.ReadFile(envPath)
if err == nil {
var snapshot gatewayStartEnvSnapshot
if err := json.Unmarshal(raw, &snapshot); err != nil {
err = json.Unmarshal(raw, &snapshot)
if err != nil {
t.Fatalf("Unmarshal(child env) error = %v", err)
}
return snapshot