Skip to content

Commit

Permalink
Fix for active flag
Browse files Browse the repository at this point in the history
  • Loading branch information
ptsochantaris committed Oct 2, 2023
1 parent e7a06b9 commit f560a9b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Sources/Maintini/Maintini.swift
Original file line number Diff line number Diff line change
Expand Up @@ -116,10 +116,12 @@ public enum Maintini {
case inactive

var isActive: Bool {
if case .inactive = self {
switch self {
case .active:
return true
case .inactive:
return false
}
return false
}
}

Expand Down

0 comments on commit f560a9b

Please sign in to comment.