Skip to content

Commit

Permalink
Fix compilation error
Browse files Browse the repository at this point in the history
  • Loading branch information
sberrevoets committed Mar 18, 2019
1 parent 540a7b7 commit 4786894
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/AlertController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public final class AlertController: UIViewController {
if let action = newValue {
action.style = .preferred

if self.actions.firstIndex(where: { $0 == newValue }) {
if self.actions.firstIndex(where: { $0 == newValue }) == nil {
self.actions.append(action)
}
} else {
Expand Down

0 comments on commit 4786894

Please sign in to comment.