Skip to content

Commit

Permalink
Update libxmlHTMLDocument.swift
Browse files Browse the repository at this point in the history
There's no need to describe a CFString: just cast it to a Swift String.
  • Loading branch information
MaddTheSane authored Nov 8, 2021
1 parent 985d73f commit 600115a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Kanna/libxmlHTMLDocument.swift
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ extension String.Encoding {
guard let cfencstr = CFStringConvertEncodingToIANACharSetName(cfenc) else {
return nil
}
return String(describing: cfencstr)
return cfencstr as String
#endif
}
}
Expand Down

0 comments on commit 600115a

Please sign in to comment.