chore: run go fmt (#2211)

A few files were not formatted correctly.

Signed-off-by: Robert Landers <landers.robert@gmail.com>
Co-authored-by: Marc <m@pyc.ac>
This commit is contained in:
Rob Landers
2026-02-21 17:38:51 +01:00
committed by GitHub
parent 755db86116
commit 6d86ea84bc
4 changed files with 4 additions and 5 deletions

View File

@@ -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)

View File

@@ -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
}

View File

@@ -12,7 +12,7 @@ type State int
const (
// lifecycle States of a thread
Reserved State = iota
Reserved State = iota
Booting
BootRequested
ShuttingDown

View File

@@ -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)
}