From 8c7c31e0965f314b395baf70b085ecbcbda0d1a7 Mon Sep 17 00:00:00 2001 From: Faye Amacker <33205765+fxamacker@users.noreply.github.com> Date: Fri, 8 Mar 2024 13:08:09 -0600 Subject: [PATCH] Reuse notifyParentIfNeeded in Array.SetType() --- array.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/array.go b/array.go index 09a7281..c0a2be0 100644 --- a/array.go +++ b/array.go @@ -3600,16 +3600,9 @@ func (a *Array) SetType(typeInfo TypeInfo) error { if a.Inlined() { // Array is inlined. - // Notify parent container so parent slab is saved in storage with updated TypeInfo of inlined array. - found, err := a.parentUpdater() - if err != nil { - return err - } - if !found { - a.parentUpdater = nil - } - return nil + // Notify parent container so parent slab is saved in storage with updated TypeInfo of inlined array. + return a.notifyParentIfNeeded() } // Array is standalone.