Skip to content

Commit 0dae2f9

Browse files
Update linter config
1 parent b368cf1 commit 0dae2f9

4 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: golangci-lint
2626
uses: golangci/golangci-lint-action@v8
2727
with:
28-
version: v2.1
28+
version: v2.2
2929
args: --verbose --timeout 5m
3030

3131
- name: Check go.mod/go.sum

.golangci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,8 @@ linters:
5959
- unparam
6060
- usestdlibvars
6161
- whitespace
62-
- wsl
62+
- wsl_v5
63+
- noinlineerr
6364
settings:
6465
staticcheck:
6566
checks:

cli_default.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ func enterSemiRawMode() (exitSemiRawMode func() error, err error) {
2525

2626
termios.Lflag &^= unix.ECHO | unix.ICANON
2727

28-
if err := unix.IoctlSetTermios(fd, ioctlWriteTermios, termios); err != nil {
28+
err = unix.IoctlSetTermios(fd, ioctlWriteTermios, termios)
29+
if err != nil {
2930
return nil, fmt.Errorf("set stdin terminal state: %w", err)
3031
}
3132

dhcpv6.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ func generateDeterministicRandomAddress(peer net.IP) (net.IP, error) {
331331
}
332332

333333
var newIP net.IP
334+
334335
newIP = append(newIP, dhcpv6LinkLocalPrefix...)
335336
newIP = append(newIP, deterministicAddress...)
336337

0 commit comments

Comments
 (0)