From ec2c294fab2051e5454dbddfc2e83d6c904d8be4 Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Tue, 27 Aug 2024 09:16:41 -0700 Subject: [PATCH] Fix OPMLParser bug. Tests now pass. --- Modules/Parser/Sources/OPMLParser/OPMLParser.swift | 2 +- Modules/Parser/Tests/OPMLParserTests/OPMLTests.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Parser/Sources/OPMLParser/OPMLParser.swift b/Modules/Parser/Sources/OPMLParser/OPMLParser.swift index d7f6b1520..b7f44828f 100644 --- a/Modules/Parser/Sources/OPMLParser/OPMLParser.swift +++ b/Modules/Parser/Sources/OPMLParser/OPMLParser.swift @@ -73,7 +73,7 @@ private extension OPMLParser { return } - _ = itemStack.dropLast() + itemStack.removeLast() } } diff --git a/Modules/Parser/Tests/OPMLParserTests/OPMLTests.swift b/Modules/Parser/Tests/OPMLParserTests/OPMLTests.swift index a1b5dea8b..b8c967dd3 100644 --- a/Modules/Parser/Tests/OPMLParserTests/OPMLTests.swift +++ b/Modules/Parser/Tests/OPMLParserTests/OPMLTests.swift @@ -16,7 +16,7 @@ class OPMLTests: XCTestCase { func testOPMLParsingPerformance() { - // 0.002 sec on my 2012 iMac. + // 0.003 sec on my M1 Mac Studio 2022 self.measure { let _ = OPMLParser.document(with: self.subsData) }