Make decodedString return non-optional.

This commit is contained in:
Brent Simmons 2024-09-28 22:23:54 -07:00
parent ed160986f5
commit 01cad9b687

View File

@ -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
}
}