Return is a bash builtin function that causes to update the exit status specified by n.
Return is intended to be used only for signaling errors, not for returning the results of function.
return [n]
If used:
Any command associated with the RETURN trap is executed before execution resumes after the function or script.