Skip to content

Commit bdfa3b3

Browse files
TrottMylesBorins
authored andcommitted
tools: favor === over == in license2rtf.js
PR-URL: https://github.com/nodejs/node/pull/8068.patch Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Prince John Wesley <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: targos - Michaël Zasso <[email protected]>
1 parent f1e14e4 commit bdfa3b3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/license2rtf.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ function ParagraphParser() {
104104
if (block_has_c_style_comment) {
105105
var prev = line;
106106
line = line.replace(/^(\s*?)(?:\s?\*\/|\/\*\s|\s\*\s?)/, '$1');
107-
if (prev == line)
107+
if (prev === line)
108108
line = line.replace(/^\s{2}/, '');
109109
if (/\*\//.test(prev))
110110
block_has_c_style_comment = false;
@@ -142,16 +142,16 @@ function ParagraphParser() {
142142
var line_li = result[2];
143143

144144
// Flush the paragraph when there is a li or an indentation jump
145-
if (line_li || (line_indent != paragraph_line_indent &&
146-
paragraph_line_indent != -1)) {
145+
if (line_li || (line_indent !== paragraph_line_indent &&
146+
paragraph_line_indent !== -1)) {
147147
flushParagraph();
148148
paragraph.li = line_li;
149149
}
150150

151151
// Set the paragraph indent that we use to detect indentation jumps. When
152152
// we just detected a list indicator, wait
153153
// for the next line to arrive before setting this.
154-
if (!line_li && paragraph_line_indent != -1) {
154+
if (!line_li && paragraph_line_indent !== -1) {
155155
paragraph_line_indent = line_indent;
156156
}
157157

0 commit comments

Comments
 (0)