| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent f54dc36 commit 1c2d699
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,7 +41,7 @@ const os = { | |||
| 41 | 41 | // Filter out vdso and vsyscall entries. | |
| 42 | 42 | const arg = args[args.length - 1]; | |
| 43 | 43 | if (arg === '[vdso]' || | |
| 44 | - arg == '[vsyscall]' || | ||
| 44 | + arg === '[vsyscall]' || | ||
| 45 | 45 | /^[0-9a-f]+-[0-9a-f]+$/.test(arg)) { | |
| 46 | 46 | return ''; | |
| 47 | 47 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -342,7 +342,7 @@ const encode = function(input) { | |||
| 342 | 342 | if (currentValue < n && ++delta > maxInt) { | |
| 343 | 343 | error('overflow'); | |
| 344 | 344 | } | |
| 345 | - if (currentValue == n) { | ||
| 345 | + if (currentValue === n) { | ||
| 346 | 346 | // Represent delta as a generalized variable-length integer. | |
| 347 | 347 | let q = delta; | |
| 348 | 348 | for (let k = base; /* no condition */; k += base) { | |
@@ -359,7 +359,7 @@ const encode = function(input) { | |||
| 359 | 359 | } | |
| 360 | 360 | ||
| 361 | 361 | output.push(stringFromCharCode(digitToBasic(q, 0))); | |
| 362 | - bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength); | ||
| 362 | + bias = adapt(delta, handledCPCountPlusOne, handledCPCount === basicLength); | ||
| 363 | 363 | delta = 0; | |
| 364 | 364 | ++handledCPCount; | |
| 365 | 365 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments