Skip to content

Commit

Permalink
Fix unused result warning
Browse files Browse the repository at this point in the history
  • Loading branch information
wtmoose committed Mar 5, 2017
1 parent 6b99a8a commit 9ea34c5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions SwiftMessages/SwiftMessages.swift
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,7 @@ open class SwiftMessages: PresenterDelegate {
ids.insert(id)
}

@discardableResult
func remove(presenter: Presenter) -> Bool {
guard let id = presenter.id, ids.contains(id) else { return false }
ids.remove(id)
Expand Down

0 comments on commit 9ea34c5

Please sign in to comment.