I have an API built using python running on AWS Lambda. This lambda has a logic to determine if a specific condition is met and proceed with rest of the logic only if the condition is met. In this scenario , should I use exit or return if condition is not met to exit the lambda?
if status != 'PENDING':
exit()
or
if status != 'PENDING':
return