summaryrefslogtreecommitdiff
path: root/pkg/util
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2022-06-06 13:32:44 -0600
committerLuke Shumaker <lukeshu@lukeshu.com>2022-06-06 13:32:52 -0600
commit9c1afdeecd3412b40c0b4973cb375cb9c71adbb1 (patch)
tree172cbba1a997f520d8b20aea79df5a4bdff6c371 /pkg/util
parentb35032f7aa821ec48612ccc78bc36f30c589c9b9 (diff)
more fix, more progress
Diffstat (limited to 'pkg/util')
-rw-r--r--pkg/util/ref.go5
1 files changed, 0 insertions, 5 deletions
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
}