Skip to content

Commit

Permalink
Merge pull request #4596 from MichaelEischer/update-golangcilint
Browse files Browse the repository at this point in the history
CI: update golangci-lint
  • Loading branch information
MichaelEischer committed Dec 23, 2023
2 parents b72de5a + dbbd31b commit da4e3ed
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ jobs:
uses: golangci/golangci-lint-action@v3
with:
# Required: the version of golangci-lint is required and must be specified without patch version: we always use the latest patch version.
version: v1.52.2
version: v1.55.2
args: --verbose --timeout 5m

# only run golangci-lint for pull requests, otherwise ALL hints get
Expand Down
3 changes: 1 addition & 2 deletions cmd/restic/integration_helpers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,8 @@ func directoriesContentsDiff(dir1, dir2 string) string {
fmt.Fprintf(&out, "+%v\n", b.path)
b = nil
continue
} else {
fmt.Fprintf(&out, "%%%v\n", a.path)
}
fmt.Fprintf(&out, "%%%v\n", a.path)
}

a, b = nil, nil
Expand Down
3 changes: 1 addition & 2 deletions internal/fuse/snapshots_dir.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,8 @@ func (d *SnapshotsDir) Lookup(ctx context.Context, name string) (fs.Node, error)
return newSnapshotLink(d.root, inode, entry.linkTarget, entry.snapshot)
} else if entry.snapshot != nil {
return newDirFromSnapshot(d.root, inode, entry.snapshot)
} else {
return NewSnapshotsDir(d.root, inode, d.inode, d.dirStruct, d.prefix+"/"+name), nil
}
return NewSnapshotsDir(d.root, inode, d.inode, d.dirStruct, d.prefix+"/"+name), nil
}

return nil, syscall.ENOENT
Expand Down

0 comments on commit da4e3ed

Please sign in to comment.