Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions Sources/TSCBasic/ByteString.swift
Original file line number Diff line number Diff line change
Expand Up @@ -108,11 +108,7 @@ public struct ByteString: ExpressibleByArrayLiteral, Hashable {
extension ByteString: CustomStringConvertible {
/// Return the string decoded as a UTF8 sequence, or traps if not possible.
public var description: String {
guard let description = validDescription else {
fatalError("invalid byte string: \(cString)")
}

return description
return cString
}

/// Return the string decoded as a UTF8 sequence, if possible.
Expand Down