title: NodeJS, Is it a bad practise to return res.json
body: <p>I'm building a ExpressJS application with NodeJS. My question is there any performance difference if I do </p>
  
  <pre><code>app.get('/test', function(req, res) {
      fn(function(err, data) {
          if (err) {
              return res.json(400, {
                  error: 1,
                  msg: "some error"
              });
          }
  
          ///more code
      });
  });
  </code></pre>
  
  <p>instead of</p>
  
  <pre><code>app.get('/test', function(req, res) {
      fn(function(err, data) {
          if (err) {
              res.json(400, {
                  error: 1,
                  msg: "some error"
              });
              return;
          }
  
          ///more code
      });
  });
  </code></pre>
  
  <p>Do returning the <code>res</code> variable make any addition load on the server. Both codes work, just the first looks better to me and I save 1 line.</p>