diff --git a/cgi_test.go b/cgi_test.go index d7c0e854..c4c7a770 100644 --- a/cgi_test.go +++ b/cgi_test.go @@ -25,7 +25,7 @@ func TestEnsureLeadingSlash(t *testing.T) { } for _, tt := range tests { - t.Run(tt.input + "-" + tt.expected, func(t *testing.T) { + t.Run(tt.input+"-"+tt.expected, func(t *testing.T) { t.Parallel() assert.Equal(t, tt.expected, ensureLeadingSlash(tt.input), "ensureLeadingSlash(%q)", tt.input) diff --git a/internal/fastabs/filepath_unix.go b/internal/fastabs/filepath_unix.go index 47fbc47d..38ed07c7 100644 --- a/internal/fastabs/filepath_unix.go +++ b/internal/fastabs/filepath_unix.go @@ -6,8 +6,9 @@ import ( "os" "path/filepath" ) + var ( - wd string + wd string wderr error ) @@ -38,4 +39,3 @@ func FastAbs(path string) (string, error) { return filepath.Join(wd, path), nil } - diff --git a/internal/state/state.go b/internal/state/state.go index 6457c2dd..7bdf9c06 100644 --- a/internal/state/state.go +++ b/internal/state/state.go @@ -12,7 +12,7 @@ type State int const ( // lifecycle States of a thread - Reserved State = iota + Reserved State = iota Booting BootRequested ShuttingDown diff --git a/internal/testserver/main.go b/internal/testserver/main.go index 249be647..a28e408e 100644 --- a/internal/testserver/main.go +++ b/internal/testserver/main.go @@ -13,7 +13,6 @@ func main() { ctx := context.Background() logger := slog.New(slog.NewTextHandler(os.Stdout, nil)) - if err := frankenphp.Init(frankenphp.WithContext(ctx), frankenphp.WithLogger(logger)); err != nil { panic(err) }