Skip to content

Commit 92577d9

Browse files
committed
Swift 6
1 parent c628ef3 commit 92577d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/KeyValueDecoder.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,8 @@ private extension KeyValueDecoder {
295295

296296
func decode(_ type: URL.Type) throws -> URL {
297297
if let string = value as? String,
298-
let url = URL(string: string){
298+
!string.isEmpty,
299+
let url = URL(string: string) {
299300
return url
300301
}
301302
return try getValue()

0 commit comments

Comments
 (0)