Strip empty debug log lines

This commit is contained in:
Davide De Rosa 2022-08-27 22:10:36 +02:00
parent 0fee726951
commit e29f0bbd83
1 changed files with 5 additions and 1 deletions

View File

@ -99,6 +99,10 @@ extension URL {
public func trailingLines(bytes: UInt64) -> [String] {
let content = trailingContent(bytes: bytes)
return content.components(separatedBy: "\n")
return content
.components(separatedBy: "\n")
.filter {
!$0.isEmpty
}
}
}