Skip to content

Commit 9797f53

Browse files
committed
properly return the travis build number, if available
1 parent e4de72a commit 9797f53

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

fastlane/lib/util.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ def hockeyapp_version_commit
1616

1717
# Gets the version, either from Travis or from Hockey
1818
def current_build_number
19-
ENV['TRAVIS_BUILD_NUMBER'] if ENV.key?('TRAVIS_BUILD_NUMBER')
19+
if ENV.key?('TRAVIS_BUILD_NUMBER')
20+
return ENV['TRAVIS_BUILD_NUMBER']
2021

2122
begin
2223
(latest_hockeyapp_version_number + 1).to_s

0 commit comments

Comments
 (0)