Skip to content

Commit

Permalink
Cleanup logic usage
Browse files Browse the repository at this point in the history
  • Loading branch information
kerrizor committed Dec 5, 2018
1 parent 41a0a1a commit 72285ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/travis/owners/subscriptions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ def plan_limit(plan)
# https://github.com/travis-ci/product/issues/97
#

if plan[:owner].is_a?(User) && !limit.nil?
limit += 1 unless limit.nil?
if plan[:owner].is_a?(User) && limit
limit += 1
end

limit
Expand Down

0 comments on commit 72285ff

Please sign in to comment.