Skip to content

Commit b5770c0

Browse files
committed
style: gofumpt
1 parent 0fc6c00 commit b5770c0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

cmd/blu/main.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ import (
88
"github.com/steipete/blucli/internal/app"
99
)
1010

11-
var version = "dev"
12-
var exit = os.Exit
11+
var (
12+
version = "dev"
13+
exit = os.Exit
14+
)
1315

1416
func runMain(ctx context.Context, args []string, stdout, stderr io.Writer) int {
1517
app.Version = version

internal/discovery/discovery.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,10 @@ var serviceTypes = []string{"musc", "musp", "musz", "mush"}
2424

2525
type DiscoverFunc func(context.Context) ([]Device, error)
2626

27-
type mdnsOverrideKey struct{}
28-
type lsdpOverrideKey struct{}
27+
type (
28+
mdnsOverrideKey struct{}
29+
lsdpOverrideKey struct{}
30+
)
2931

3032
func WithMDNSOverride(ctx context.Context, fn DiscoverFunc) context.Context {
3133
return context.WithValue(ctx, mdnsOverrideKey{}, fn)

0 commit comments

Comments
 (0)