diff --git a/lib/typing/columns/columns.go b/lib/typing/columns/columns.go index cab9f3866..87a8362b5 100644 --- a/lib/typing/columns/columns.go +++ b/lib/typing/columns/columns.go @@ -248,6 +248,7 @@ func (c *Columns) DeleteColumn(name string) { } } +// RemoveDeleteColumnMarker removes the deleted column marker from a slice if present and returns whether or not it was removed. func RemoveDeleteColumnMarker(cols []Column) ([]Column, bool) { origLength := len(cols) // Use [slices.Clone] because [slices.DeleteFunc] mutates its inputs.