diff --git a/cmd/admin-service-restart.go b/cmd/admin-service-restart.go index 5795936158..b857f03824 100644 --- a/cmd/admin-service-restart.go +++ b/cmd/admin-service-restart.go @@ -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.") diff --git a/cmd/client-fs_windows.go b/cmd/client-fs_windows.go index 121f36a13f..73a35be43a 100644 --- a/cmd/client-fs_windows.go +++ b/cmd/client-fs_windows.go @@ -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 } diff --git a/pkg/disk/stat_windows.go b/pkg/disk/stat_windows.go index 311f7553ec..aa0cfdca4e 100644 --- a/pkg/disk/stat_windows.go +++ b/pkg/disk/stat_windows.go @@ -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 }