1
0
Fork 0
mirror of https://github.com/restic/restic.git synced 2025-03-09 00:00:02 +01:00

Fix lint issues

This commit is contained in:
aneesh-n 2024-12-03 18:48:16 +05:30
parent a230fffb88
commit 8e45f4ce5c
No known key found for this signature in database
GPG key ID: 6F5A52831C046F44

View file

@ -87,7 +87,7 @@ type Dir struct {
hasAds bool
}
func (_ Dir) IsAds() bool {
func (Dir) IsAds() bool {
// Dir itself can not be an ADS
return false
}
@ -268,12 +268,12 @@ func saveSnapshot(t testing.TB, repo restic.Repository, snapshot Snapshot, getFi
return sn, id
}
var noopGetFileAttributes = func(attr *FileAttributes, isDir bool) (fileAttributes map[restic.GenericAttributeType]json.RawMessage) {
var noopGetFileAttributes = func(_ *FileAttributes, _ bool) (fileAttributes map[restic.GenericAttributeType]json.RawMessage) {
// No-op
return nil
}
var noopGetAdsAttributes = func(path string, hasAds bool, isAds bool) (adsAttribute map[restic.GenericAttributeType]json.RawMessage) {
var noopGetAdsAttributes = func(_ string, _ bool, _ bool) (adsAttribute map[restic.GenericAttributeType]json.RawMessage) {
// No-op
return nil
}