Skip to content

Commit 6d86ea8

Browse files
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>
1 parent 755db86 commit 6d86ea8

4 files changed

Lines changed: 4 additions & 5 deletions

File tree

cgi_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ func TestEnsureLeadingSlash(t *testing.T) {
2525
}
2626

2727
for _, tt := range tests {
28-
t.Run(tt.input + "-" + tt.expected, func(t *testing.T) {
28+
t.Run(tt.input+"-"+tt.expected, func(t *testing.T) {
2929
t.Parallel()
3030

3131
assert.Equal(t, tt.expected, ensureLeadingSlash(tt.input), "ensureLeadingSlash(%q)", tt.input)

internal/fastabs/filepath_unix.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@ import (
66
"os"
77
"path/filepath"
88
)
9+
910
var (
10-
wd string
11+
wd string
1112
wderr error
1213
)
1314

@@ -38,4 +39,3 @@ func FastAbs(path string) (string, error) {
3839

3940
return filepath.Join(wd, path), nil
4041
}
41-

internal/state/state.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ type State int
1212

1313
const (
1414
// lifecycle States of a thread
15-
Reserved State = iota
15+
Reserved State = iota
1616
Booting
1717
BootRequested
1818
ShuttingDown

internal/testserver/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ func main() {
1313
ctx := context.Background()
1414
logger := slog.New(slog.NewTextHandler(os.Stdout, nil))
1515

16-
1716
if err := frankenphp.Init(frankenphp.WithContext(ctx), frankenphp.WithLogger(logger)); err != nil {
1817
panic(err)
1918
}

0 commit comments

Comments
 (0)