Skip to content

Commit

Permalink
Lint stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
klauspost committed Dec 20, 2024
1 parent c2530bd commit 2a3dc89
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/admin-service-restart.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ func mainAdminServiceRestart(ctx *cli.Context) error {
})
if e != nil {
// Attempt an older API server might be old
//lint:ignore SA1019 We explicitly want old API.
//nolint:staticcheck
e = client.ServiceRestart(ctxt)
}
fatalIf(probe.NewError(e), "Unable to restart the server.")
Expand Down
2 changes: 1 addition & 1 deletion cmd/client-fs_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ func IsDeleteEvent(event notify.Event) bool {

// getAllXattrs returns the extended attributes for a file if supported
// by the OS
func getAllXattrs(path string) (map[string]string, error) {
func getAllXattrs(_ string) (map[string]string, error) {
return nil, nil
}
2 changes: 1 addition & 1 deletion pkg/disk/stat_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@ package disk

// GetFileSystemAttrs return the file system attribute as string; containing mode,
// uid, gid, uname, Gname, atime, mtime, ctime and md5
func GetFileSystemAttrs(file string) (string, error) {
func GetFileSystemAttrs(_ string) (string, error) {
return "", nil
}

0 comments on commit 2a3dc89

Please sign in to comment.