Skip to content

Does channel deploy script need a return? #4929

Answered by tonygermano
tom08zehn asked this question in Q&A
Discussion options

You must be logged in to vote

Returning early will short circuit your script, but it won't prevent the channel from deploying.

As far as I can tell from looking through the source, mirth does not inspect the return value, so you could probably return anything you wanted. return; is the same as return undefined;, and there is an implicit return undefined; at the end of every javascript function. If you actually want to stop the channel from deploying, throw something.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@tom08zehn
Comment options

Answer selected by tom08zehn
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants