Skip to content

Commit

Permalink
CFString can be bridged to String
Browse files Browse the repository at this point in the history
Fix #9
  • Loading branch information
cockscomb committed Apr 26, 2017
1 parent 0c9f6c7 commit ca4da3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UTIKit/UTI.swift
Expand Up @@ -238,7 +238,7 @@ public struct UTI: CustomStringConvertible, CustomDebugStringConvertible, Equata
// MARK: - Printable, DebugPrintable

public var description: String {
return UTTypeCopyDescription(utiString as CFString)?.takeRetainedValue() as? String ?? utiString
return UTTypeCopyDescription(utiString as CFString)?.takeRetainedValue() as String? ?? utiString
}

public var debugDescription: String {
Expand Down

0 comments on commit ca4da3a

Please sign in to comment.