Skip to content

Commit

Permalink
tools: favor === over == in license2rtf.js
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Trott authored and cjihrig committed Aug 15, 2016
1 parent 08e6eee commit 7eb0e7a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tools/license2rtf.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -142,16 +142,16 @@ 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;
}

// 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;
}

Expand Down

1 comment on commit 7eb0e7a

@MylesBorins
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks like the url here has .patch in it :S

Please sign in to comment.