Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

But if you do ENV[xxx] the value is also set to nil.

Using .fetch with a default of nil is what's arguably not very useful.

IMO it's just a robocop rule to use .fetch, which is useful in general for exploding on missing configuration but not useful if a missing value is handled.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: