title: How do I return early from a rake task?
body: <p>I have a rake task where I do some checks at the beginning, if one of the checks fails I would like to return early from the rake task, I don't want to execute any of the remaining code.</p>
  
  <p>I thought the solution would be to place a return where I wanted to return from the code but I get the following error</p>
  
  <pre><code>unexpected return
  </code></pre>