joyent/node — pull request #2625 by izuzak (2012-01-27 17:53:08+00:00)
Title: Make coding style in http.js and https.js more consistent

This patch makes the coding style in http.js and https.js a bit more consistent and compliant with the style guide, with respect to:

* usage of === and == operators (use ===)
* usage of ; after assignment statements and function definition statements (use ; after assignments, and not after definitions)
* usage of single-statement if blocks (should be in new line and curly braces should be used, rather than having a single-line if block)

Currently, these constructs are used inconsistently, i.e. examples of both alternatives for each point may be found (even for the exact same expression, e.g. both `` === 0`` and `` == 0`` are used).