| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 627f19a commit 16dec42
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -57,7 +57,7 @@ module.exports = class BufferList { | |||
| 57 | 57 | return ''; | |
| 58 | 58 | let p = this.head; | |
| 59 | 59 | let ret = '' + p.data; | |
| 60 | - while (p = p.next) | ||
| 60 | + while ((p = p.next) !== null) | ||
| 61 | 61 | ret += s + p.data; | |
| 62 | 62 | return ret; | |
| 63 | 63 | } | |
@@ -129,7 +129,7 @@ module.exports = class BufferList { | |||
| 129 | 129 | break; | |
| 130 | 130 | } | |
| 131 | 131 | ++c; | |
| 132 | - } while (p = p.next); | ||
| 132 | + } while ((p = p.next) !== null); | ||
| 133 | 133 | this.length -= c; | |
| 134 | 134 | return ret; | |
| 135 | 135 | } | |
@@ -163,7 +163,7 @@ module.exports = class BufferList { | |||
| 163 | 163 | break; | |
| 164 | 164 | } | |
| 165 | 165 | ++c; | |
| 166 | - } while (p = p.next); | ||
| 166 | + } while ((p = p.next) !== null); | ||
| 167 | 167 | this.length -= c; | |
| 168 | 168 | return ret; | |
| 169 | 169 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments