From 37c948fdc189cf42a755cfecacdaa17f6d60519c Mon Sep 17 00:00:00 2001 From: segayuu Date: Fri, 15 Dec 2017 10:38:06 +0900 Subject: [PATCH] cleanup ignore lint error: no-conditional-assignment --- types/vinyl/tslint.json | 1 - types/vinyl/vinyl-tests.ts | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/types/vinyl/tslint.json b/types/vinyl/tslint.json index 54cc466d67..5eea98e41f 100644 --- a/types/vinyl/tslint.json +++ b/types/vinyl/tslint.json @@ -1,7 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "no-conditional-assignment": false, "no-construct": false, "no-var-requires": false } diff --git a/types/vinyl/vinyl-tests.ts b/types/vinyl/vinyl-tests.ts index 31b1b68ee6..777ed6fcce 100644 --- a/types/vinyl/vinyl-tests.ts +++ b/types/vinyl/vinyl-tests.ts @@ -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(); } });