Commit f43f358966ca41f9d5e9de2d29dab3bd103c13b9
1 parent
44e49755
Exists in
master
and in
1 other branch
simplify class checking for issue tracker and notification service
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app/models/app.rb
... | ... | @@ -142,11 +142,11 @@ class App |
142 | 142 | |
143 | 143 | |
144 | 144 | def issue_tracker_configured? |
145 | - !!(issue_tracker && issue_tracker.class < IssueTracker && issue_tracker.configured?) | |
145 | + !!(issue_tracker.class < IssueTracker && issue_tracker.configured?) | |
146 | 146 | end |
147 | 147 | |
148 | 148 | def notification_service_configured? |
149 | - !!(notification_service && notification_service.class < NotificationService && notification_service.configured?) | |
149 | + !!(notification_service.class < NotificationService && notification_service.configured?) | |
150 | 150 | end |
151 | 151 | |
152 | 152 | ... | ... |