Skip to content

Commit

Permalink
Merge pull request #12 from dsommers/fix/equality-assignment-mistype-…
Browse files Browse the repository at this point in the history
…warn

Reduce JS confusion on assignment in while()
  • Loading branch information
biji authored Dec 9, 2020
2 parents c2316fb + 4ce8505 commit 9a705b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ function parseStat(forceDot = false) {

let count = 0;
let line;
while (line = dstream.read_line(null)) {
while ((line = dstream.read_line(null))) {
line = String(line);
let fields = line.split(/ +/);
if (fields.length<=2) break;
Expand Down

0 comments on commit 9a705b4

Please sign in to comment.