Skip to content

Commit

Permalink
make sure variable is not nil
Browse files Browse the repository at this point in the history
  • Loading branch information
robkooper committed Oct 9, 2018
1 parent 3a9ec79 commit da6c456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,8 @@ def commit_is_tagged?
end

def commit_tags
e = ENV['BETY_GIT_TAGS'].dup
ref_names = e.nil? || e.empty? ? `git log --pretty=format:"%d" -1` : e
e = ENV['BETY_GIT_TAGS']
ref_names = e.nil? || e.empty? ? `git log --pretty=format:"%d" -1` : e.dup
if /tag/.match(ref_names).nil?
return ""
end
Expand Down

0 comments on commit da6c456

Please sign in to comment.