Skip to content

Commit

Permalink
[rake] Check if env var is nil before stripping
Browse files Browse the repository at this point in the history
Fixes #261
  • Loading branch information
kattrali committed Nov 30, 2015
1 parent e296936 commit 69d392c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/bugsnag/tasks/bugsnag.rake
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ namespace :bugsnag do
config_command += " --app #{ENV["HEROKU_APP"]}" if ENV["HEROKU_APP"]
heroku_env = run_command.call(config_command).split(/[\n\r]/).each_with_object({}) do |c, obj|
k,v = c.split("=")
obj[k] = v.strip.empty? ? nil : v
obj[k] = (v.nil? || v.strip.empty?) ? nil : v
end

# Check for Bugsnag API key (required)
Expand Down

0 comments on commit 69d392c

Please sign in to comment.