In case the rollout is not exist - return nil.
yossi-eynav opened this issue · 5 comments
yossi-eynav commented
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?
p-salido commented
@yossi-eynav rollout.get
of an undefined feature already returns nil, what do you mean by "rollout is no exist"?
yossi-eynav commented
p-salido commented
You are correct there, my apologies.
reneklacan commented
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.
yossi-eynav commented