policygenius / chief

Simple command object pattern for Ruby
MIT License
3 stars 1 forks source link

Allow Chief::Result to be created without explicitly passing a nil error #5

Closed smeriwether closed 6 years ago

smeriwether commented 6 years ago

There are times when I want to create Chief::Result objects outside of Chief::Commands (like in tests) and I don't want to pass nil for every successful result. I think it is reasonable to default errors to nil.