We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If you have an empty env var, it will output like this in heroku config:
heroku config
MY_VAR=
(reproduce with heroku config:set MY_VAR=).
heroku config:set MY_VAR=
lib/bugsnag/tasks/bugsnag.rake:51 does this:
lib/bugsnag/tasks/bugsnag.rake:51
k,v = c.split("=") obj[k] = v.strip.empty? ? nil : v
but the result of split in this case is ["MY_VAR"], so v is nil, and strip isn't defined on nil.
["MY_VAR"]
v
strip
Maybe add:
next if v.nil?
between the two lines, or change the test to
obj[k] = (v.nil? || v.strip.empty?) ? nil : v
The text was updated successfully, but these errors were encountered:
69d392c
Thanks for the report @joelcogen. Just pushed a fix, and will make a release soon.
Sorry, something went wrong.
No branches or pull requests
If you have an empty env var, it will output like this in
heroku config
:(reproduce with
heroku config:set MY_VAR=
).lib/bugsnag/tasks/bugsnag.rake:51
does this:but the result of split in this case is
["MY_VAR"]
, sov
is nil, andstrip
isn't defined on nil.Maybe add:
between the two lines, or change the test to
The text was updated successfully, but these errors were encountered: