mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Make decodedString return non-optional.
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user