fetlife/rollout

In case the rollout is not exist - return nil.

yossi-eynav opened this issue · 5 comments

The method get should return nil in case rollout is no exist.
This way the behaviour of the method is more predictable.

What do you think?

@yossi-eynav rollout.get of an undefined feature already returns nil, what do you mean by "rollout is no exist"?

You are correct there, my apologies.

Returning nil would be a breaking change so I'd like to avoid that if possible. But if it's very important to you I'd accept PR adding method like exists? to the Rollout::Feature class or similar meaningful implementation not breaking backward compatibility.