Skip to content

Commit 0b682ee

Browse files
committed
Cleanup logic usage
1 parent 910008d commit 0b682ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/travis/owners/subscriptions.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ def plan_limit(plan)
3434
# https://github.com/travis-ci/product/issues/97
3535
#
3636

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

4141
limit

0 commit comments

Comments
 (0)