fix linter error

This commit is contained in:
Michael Eischer committed 2026-10-17 22:57:11 +02:00
1 parent 35f15c398a
commit 2497d99f9f
3 files changed
+3 -5

No files matched your search

+2 -2
View File
@@ -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
}
+1 -1
View File
@@ -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)
-2
View File
@@ -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)