cleanup ignore lint error: no-conditional-assignment

This commit is contained in:
segayuu
2017-12-15 10:38:06 +09:00
parent fef403eff4
commit 37c948fdc1
2 changed files with 1 additions and 3 deletions
-1
View File
@@ -1,7 +1,6 @@
{
"extends": "dtslint/dt.json",
"rules": {
"no-conditional-assignment": false,
"no-construct": false,
"no-var-requires": false
}
+1 -2
View File
@@ -571,8 +571,7 @@ describe('File', () => {
// Start flowing file2
file2.contents.on('readable', function(this: NodeJS.ReadableStream) {
let chunk: string | Buffer;
while ((chunk = this.read()) !== null) {
for (let chunk: string | Buffer = this.read(); chunk !== null; chunk = this.read()) {
data2 += chunk.toString();
}
});