From 01cad9b6873015f800f312ed33b6b7e6cfe05e3b Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 28 Sep 2024 22:23:54 -0700 Subject: [PATCH] Make decodedString return non-optional. --- .../Parser/Sources/Parser/HTMLParser/HTMLEntityDecoder.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Modules/Parser/Sources/Parser/HTMLParser/HTMLEntityDecoder.swift b/Modules/Parser/Sources/Parser/HTMLParser/HTMLEntityDecoder.swift index 705f7a6d3..5c006d4b7 100644 --- a/Modules/Parser/Sources/Parser/HTMLParser/HTMLEntityDecoder.swift +++ b/Modules/Parser/Sources/Parser/HTMLParser/HTMLEntityDecoder.swift @@ -9,7 +9,7 @@ import Foundation public final class HTMLEntityDecoder { - public static func decodedString(_ encodedString: String) -> String? { + public static func decodedString(_ encodedString: String) -> String { var didDecodeAtLeastOneEntity = false @@ -34,7 +34,7 @@ public final class HTMLEntityDecoder { } assertionFailure("Expected result but got nil.") - return nil + return encodedString } }