From 3d7db623dce3e2effe81a0ceda1d53cb90e962ee Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 6 Apr 2026 15:37:36 +0000 Subject: [PATCH] Remove duplicate array validation Agent-Logs-Url: https://github.com/wesleyel/swiftui-math/sessions/56436444-e15b-4dd0-8a70-c87df1e3dc4e Co-authored-by: wesleyel <48174882+wesleyel@users.noreply.github.com> --- Sources/SwiftUIMath/Internal/Syntax/AtomFactory.swift | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Sources/SwiftUIMath/Internal/Syntax/AtomFactory.swift b/Sources/SwiftUIMath/Internal/Syntax/AtomFactory.swift index 8314929..9b21291 100644 --- a/Sources/SwiftUIMath/Internal/Syntax/AtomFactory.swift +++ b/Sources/SwiftUIMath/Internal/Syntax/AtomFactory.swift @@ -712,13 +712,7 @@ extension Math { return table } } else if env == "array" { - guard let columnAlignments else { - let message = "array environment requires at least 1 column alignment" - if error == nil { - error = ParserError(code: .invalidEnvironment, message: message) - } - return nil - } + let columnAlignments = columnAlignments ?? [] if table.numberOfColumns > columnAlignments.count { let message = "array environment has more columns than alignment specifiers"