Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

linters:
enable:
- gofumpt
- errorlint
- gofumpt
- nolintlint
- unconvert
- unparam

Expand Down
2 changes: 1 addition & 1 deletion fscommon/rdma.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func readRdmaEntries(dir, file string) ([]cgroups.RdmaEntry, error) {
if err != nil {
return nil, err
}
defer fd.Close() //nolint:errorlint
defer fd.Close()
scanner := bufio.NewScanner(fd)
for scanner.Scan() {
parts := strings.SplitN(scanner.Text(), " ", 4)
Expand Down
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ func rmdir(path string, retry bool) error {

again:
err := unix.Rmdir(path)
switch err { // nolint:errorlint // unix errors are bare
switch err {
case nil, unix.ENOENT:
return nil
case unix.EINTR:
Expand Down