title: Unexpected non-void return value in void function
body: <p>I am doing the HTTP request and getting response in my <code>func</code>. It return the value of response. I am doing it this way:</p>
  
  <pre><code>NSURLConnection.sendAsynchronousRequest(request, queue: NSOperationQueue.mainQueue()) {(response, data, error) in
          println(NSString(data: data, encoding: NSUTF8StringEncoding))
          stringResponse = NSString(data: data, encoding: NSUTF8StringEncoding) as! String
          if stringResponse == "0" {
              return false
          } else if stringResponse == "1" {
              return true
          } else {
              return false
          }
      }
  </code></pre>
  
  <p>But on all <code>return</code>s I have error <code>Unexpected non-void return value in void function</code> How to fix this?</p>