We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1a4491 commit ee51cdaCopy full SHA for ee51cda
Sources/SwiftSyntax/Utils.swift
@@ -71,8 +71,6 @@ public struct SourceEdit {
71
72
extension String {
73
static func fromBuffer(_ textBuffer: UnsafeBufferPointer<UInt8>) -> String {
74
- // The string function crashes if the buffer is empty with nil pointer (SR-9869).
75
- guard !textBuffer.isEmpty else { return String() }
76
return String(decoding: textBuffer, as: UTF8.self)
77
}
78
0 commit comments