From 9c1afdeecd3412b40c0b4973cb375cb9c71adbb1 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 6 Jun 2022 13:32:44 -0600 Subject: more fix, more progress --- pkg/util/ref.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'pkg/util') diff --git a/pkg/util/ref.go b/pkg/util/ref.go index 05ef08f..57f2eac 100644 --- a/pkg/util/ref.go +++ b/pkg/util/ref.go @@ -43,15 +43,10 @@ func (r *Ref[A, T]) Read() error { } func (r *Ref[A, T]) Write() error { - size := binstruct.StaticSize(r.Data) buf, err := binstruct.Marshal(r.Data) if err != nil { return err } - if len(buf) != size { - return fmt.Errorf("util.Ref[%T].Write: expected to want to write %d bytes, but got %d bytes to write", - r.Data, size, len(buf)) - } if _, err = r.File.WriteAt(buf, r.Addr); err != nil { return err } -- cgit v1.2.3-2-g168b