Hi @palkan,
Today I have faced with an issue:
Amorail::Lead.find ANY_NONEXISTENT_ID
=> false
I don't it is convenient to return false from #find because one waits for lead instance (if given lead is exists) or nil.
It seems like it occurs because of Entity#handle_response returns false.
My proposal is to return nil instead of false.
What do you think?
Hi @palkan,
Today I have faced with an issue:
I don't it is convenient to return
falsefrom#findbecause one waits for lead instance (if given lead is exists) ornil.It seems like it occurs because of
Entity#handle_responsereturnsfalse.My proposal is to return
nilinstead offalse.What do you think?