Skip to content

Commit

Permalink
Remove newline from derived data path returned by defaults
Browse files Browse the repository at this point in the history
  • Loading branch information
robinkunde committed Jan 10, 2024
1 parent 2184c87 commit 111f08f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ private extension Xcode {
try? task.run()
let handle = pipe.fileHandleForReading
let data = handle.readDataToEndOfFile()
let path = String(data: data, encoding: String.Encoding.utf8)
let path = String(data: data, encoding: String.Encoding.utf8)?.trimmingCharacters(in: .whitespacesAndNewlines)
return (path?.isEmpty ?? true) ? nil : path
}
}
Expand Down

0 comments on commit 111f08f

Please sign in to comment.