From 7eb0e7a4791584ef2c06cf810fc058eee022d2f1 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 11 Aug 2016 10:53:11 -0700 Subject: [PATCH] tools: favor === over == in license2rtf.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/8068.patch Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Prince John Wesley Reviewed-By: Franziska Hinkelmann Reviewed-By: Minwoo Jung Reviewed-By: Roman Reiss Reviewed-By: targos - Michaƫl Zasso --- tools/license2rtf.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/license2rtf.js b/tools/license2rtf.js index 0b66cc10f322f9..694e1c60501414 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; }