Skip to content

Commit

Permalink
chore: fix the lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
panjf2000 committed Mar 8, 2023
1 parent 80285f8 commit edffef8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions internal/io/io_bsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func Writev(fd int, bs [][]byte) (int, error) {
return 0, nil
}
iov := bytes2iovec(bs)
n, _, err := unix.RawSyscall(unix.SYS_WRITEV, uintptr(fd), uintptr(unsafe.Pointer(&iov[0])), uintptr(len(iov)))
n, _, err := unix.RawSyscall(unix.SYS_WRITEV, uintptr(fd), uintptr(unsafe.Pointer(&iov[0])), uintptr(len(iov))) //nolint:staticcheck
if err != 0 {
return int(n), err
}
Expand All @@ -51,7 +51,7 @@ func Readv(fd int, bs [][]byte) (int, error) {
}
iov := bytes2iovec(bs)
// syscall
n, _, err := unix.RawSyscall(unix.SYS_READV, uintptr(fd), uintptr(unsafe.Pointer(&iov[0])), uintptr(len(iov)))
n, _, err := unix.RawSyscall(unix.SYS_READV, uintptr(fd), uintptr(unsafe.Pointer(&iov[0])), uintptr(len(iov))) //nolint:staticcheck
if err != 0 {
return int(n), err
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build 386 || arm || mips || mipsle
//go:build (freebsd || dragonfly || darwin) && (386 || arm || mips || mipsle)

/*
* Copyright (c) 2023 Andy Pan.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
//go:build amd64 || arm64 || ppc64 || ppc64le || mips64 || mips64le || riscv64
//go:build (freebsd || dragonfly || darwin) && (amd64 || arm64 || ppc64 || ppc64le || mips64 || mips64le || riscv64)

/*
* Copyright (c) 2023 Andy Pan.
Expand Down

0 comments on commit edffef8

Please sign in to comment.