Skip to content

Commit

Permalink
This doesn’t lint when Foundation subspec inc’d
Browse files Browse the repository at this point in the history
Because `Promise<(Pipe, Pipe)>.print` confuses the compiler for Swift.print usage. This obv. is completely daft, but whatever.
  • Loading branch information
mxcl committed Mar 28, 2018
1 parent a37e91a commit 186439d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Catchable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ public extension CatchMixin {
*/
func cauterize() {
self.catch {
print("PromiseKit:cauterized-error:", $0)
Swift.print("PromiseKit:cauterized-error:", $0)
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion Sources/Promise.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public extension Promise {
public func wait() throws -> T {

if Thread.isMainThread {
print("PromiseKit: warning: `wait()` called on main thread!")
Swift.print("PromiseKit: warning: `wait()` called on main thread!")
}

var result = self.result
Expand Down

0 comments on commit 186439d

Please sign in to comment.