Function Gate

There are times when a function behaves in an unexpected way in live apps. In certain scenarios, stopping that function from executing can either solve the problem or prevent major damage. This preset comes in very handy in such cases. If you apply this preset on a function and that function has a non void return type, Hansel allows you to return a sentinel value from that function. This helps in ensuring that all the places from where this function is invoked, get an appropriate value returned, though the function is gated and won't get executed.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.