Skip to content

Commit ea4a6ec

Browse files
Thomas StrombergThomas Stromberg
authored andcommitted
fix lint errors
1 parent 9f19abf commit ea4a6ec

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,8 @@ release:
269269
exit 1; \
270270
fi
271271
@echo "Creating release $(VERSION)..."
272-
@if ! echo "$(VERSION)" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+$$'; then \
273-
echo "Error: VERSION must be in format vX.Y.Z (e.g., v1.0.0)"; \
272+
@if ! echo "$(VERSION)" | grep -qE '^v[0-9]+\.[0-9]+\.[0-9]+'; then \
273+
echo "Error: VERSION must be in format vX.Y.Z or vX.Y.Z-suffix (e.g., v1.0.0, v1.0.0-alpha)"; \
274274
exit 1; \
275275
fi
276276
@if git rev-parse "$(VERSION)" >/dev/null 2>&1; then \

cmd/goose/icons_darwin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ var iconWarning []byte
2424
//go:embed icons/cockroach.png
2525
var iconCockroach []byte
2626

27-
func getIcon(iconType IconType, counts PRCounts) []byte {
27+
func getIcon(iconType IconType, _ PRCounts) []byte {
2828
switch iconType {
2929
case IconGoose, IconBoth:
3030
return iconGoose

cmd/goose/x11tray/tray_other.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
//go:build !linux && !freebsd && !openbsd && !netbsd && !dragonfly && !solaris && !illumos && !aix
22

3+
// Package x11tray provides system tray proxy support for Unix-like systems.
4+
// On non-Unix platforms (macOS, Windows), the systray library handles tray functionality natively.
35
package x11tray
46

57
import (
@@ -16,18 +18,18 @@ func HealthCheck() error {
1618
type ProxyProcess struct{}
1719

1820
// Stop is a no-op on non-Unix platforms.
19-
func (p *ProxyProcess) Stop() error {
21+
func (*ProxyProcess) Stop() error {
2022
return nil
2123
}
2224

23-
// TryProxy is not needed on non-Unix platforms and always returns nil.
24-
func TryProxy(ctx context.Context) (*ProxyProcess, error) {
25-
return nil, nil
25+
// TryProxy is not needed on non-Unix platforms.
26+
func TryProxy(_ context.Context) (*ProxyProcess, error) {
27+
return &ProxyProcess{}, nil
2628
}
2729

2830
// EnsureTray always succeeds on non-Unix platforms.
29-
func EnsureTray(ctx context.Context) (*ProxyProcess, error) {
30-
return nil, nil
31+
func EnsureTray(_ context.Context) (*ProxyProcess, error) {
32+
return &ProxyProcess{}, nil
3133
}
3234

3335
// ShowContextMenu is a no-op on non-Unix platforms.

0 commit comments

Comments
 (0)