mirror of
https://github.com/restic/restic.git
synced 2026-10-29 11:35:42 +00:00
fix linter error
This commit is contained in:
1 parent
35f15c398a
commit
2497d99f9f
3 files changed
+3
-5
No files matched your search
@@ -625,8 +625,8 @@ func (r *SFTP) Close() error {
|
||||
return err
|
||||
}
|
||||
|
||||
// get the error, but ignore it
|
||||
<-r.result
|
||||
//nolint:staticcheck // get the error, but ignore it
|
||||
_ = <-r.result
|
||||
return nil
|
||||
}
|
||||
|
||||
|
||||
@@ -545,7 +545,7 @@ func (s *Suite[C]) TestSave(t *testing.T) {
|
||||
}
|
||||
|
||||
if fi.Size != int64(len(data)) {
|
||||
t.Errorf("Stat() returned different size, want %q, got %d", len(data), fi.Size)
|
||||
t.Errorf("Stat() returned different size, want %d, got %d", len(data), fi.Size)
|
||||
}
|
||||
|
||||
err = b.Remove(context.TODO(), h)
|
||||
|
||||
@@ -469,8 +469,6 @@ func OSAttrsToGenericAttributes(attributeType reflect.Type, attributeValuePtr *r
|
||||
|
||||
// Iterate over the fields of the struct
|
||||
for field := range attributeType.Fields() {
|
||||
field := field
|
||||
|
||||
// Get the field value using reflection
|
||||
fieldValue := attributeValue.FieldByName(field.Name)
|
||||
|
||||
|
||||
Reference in new issue
Block a user