Skip to content

Commit 8e2c0ac

Browse files
committed
Go vet
1 parent e9d53c8 commit 8e2c0ac

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,5 @@ jobs:
2626
run: go get .
2727
- name: Build
2828
run: go build -v ./...
29+
- name: Lint
30+
run: go vet ./...

internal/app/nat4hook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func (hook Nat4Hook) RunExit(ctx context.Context) error {
8181
if errcount == 1 {
8282
return lasterr
8383
} else if errcount > 1 {
84-
return fmt.Errorf("%i iptable errors", errcount)
84+
return fmt.Errorf("%d iptable errors", errcount)
8585
}
8686
return nil
8787
}

0 commit comments

Comments
 (0)