Skip to content

Commit

Permalink
Improve output to standardOut
Browse files Browse the repository at this point in the history
  • Loading branch information
iainsmith committed Apr 12, 2018
1 parent 7ec686f commit 078f337
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/SwiftDockerLib/Logging.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ColorfulHandle: Handle {
}

func handle(data: Data) {
let output = String(data: data, encoding: .utf8)!
guard let output = String(data: data, encoding: .utf8)?.trimmingCharacters(in: .newlines), output.isEmpty == false else { return }
print(output)
}
}
Expand Down

0 comments on commit 078f337

Please sign in to comment.