diff options
author | Rich Trott <rtrott@gmail.com> | 2016-08-11 10:53:11 -0700 |
---|---|---|
committer | Franziska Hinkelmann <franzih@chromium.org> | 2016-08-14 11:03:09 +0200 |
commit | 3fe55f6f91ec106b6f446cf18aee1594d1a8bd78 (patch) | |
tree | 4d39e04ef291757db4bd27f8d930bacd57e1413f /tools | |
parent | fce4b981eacbce0b85a2418d042f1f67d40e9834 (diff) | |
download | android-node-v8-3fe55f6f91ec106b6f446cf18aee1594d1a8bd78.tar.gz android-node-v8-3fe55f6f91ec106b6f446cf18aee1594d1a8bd78.tar.bz2 android-node-v8-3fe55f6f91ec106b6f446cf18aee1594d1a8bd78.zip |
tools: favor === over == in license2rtf.js
PR-URL: https://github.com/nodejs/node/pull/8068.patch
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Prince John Wesley <princejohnwesley@gmail.com>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Reviewed-By: Minwoo Jung <jmwsoft@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: targos - Michaƫl Zasso <mic.besace@gmail.com>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/license2rtf.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/license2rtf.js b/tools/license2rtf.js index 0b66cc10f3..694e1c6050 100644 --- a/tools/license2rtf.js +++ b/tools/license2rtf.js @@ -104,7 +104,7 @@ function ParagraphParser() { if (block_has_c_style_comment) { var prev = line; line = line.replace(/^(\s*?)(?:\s?\*\/|\/\*\s|\s\*\s?)/, '$1'); - if (prev == line) + if (prev === line) line = line.replace(/^\s{2}/, ''); if (/\*\//.test(prev)) block_has_c_style_comment = false; @@ -142,8 +142,8 @@ function ParagraphParser() { var line_li = result[2]; // Flush the paragraph when there is a li or an indentation jump - if (line_li || (line_indent != paragraph_line_indent && - paragraph_line_indent != -1)) { + if (line_li || (line_indent !== paragraph_line_indent && + paragraph_line_indent !== -1)) { flushParagraph(); paragraph.li = line_li; } @@ -151,7 +151,7 @@ function ParagraphParser() { // Set the paragraph indent that we use to detect indentation jumps. When // we just detected a list indicator, wait // for the next line to arrive before setting this. - if (!line_li && paragraph_line_indent != -1) { + if (!line_li && paragraph_line_indent !== -1) { paragraph_line_indent = line_indent; } |