Unsetting a config key that doesn't exist panics on nil config list
bencurrerburgess opened this issue · 2 comments
bencurrerburgess commented
Bug
Steps to reproduce:
- Create a new app and a new function within that app
- Unset any config key (one that does not exist) on the new function
fn unset config function <app-name> <function-name> anykey
This will panic on assignment entry to a nil map.
The same issue will occur on an app config:
- create a new app
- unset any config key on the new app
fn unset config app <app-name> anykey
The map in question that is nil is the fn.config
rikgibson commented
PRs welcome @bencurrerburgess...
bencurrerburgess commented
Issue fixed in PR: #508