diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2019-12-12 15:39:06 -0500 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2019-12-12 15:39:06 -0500 |
| commit | 15930182a7ca048a2472e0120650646542b31614 (patch) | |
| tree | a7450b94fb899fde5b0eaaa4cdc7a395a03493ad /src/formats.ts | |
| parent | bc549648b38698b7bd3cb71ab7e71bb17a3a68a1 (diff) | |
| download | ao-coverage-15930182a7ca048a2472e0120650646542b31614.tar.gz ao-coverage-15930182a7ca048a2472e0120650646542b31614.tar.bz2 ao-coverage-15930182a7ca048a2472e0120650646542b31614.zip | |
Use nullish-coalescing op for env var assignments
Diffstat (limited to 'src/formats.ts')
| -rw-r--r-- | src/formats.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/formats.ts b/src/formats.ts index b64c418..8de55b1 100644 --- a/src/formats.ts +++ b/src/formats.ts @@ -47,7 +47,7 @@ const FormatsObj: FormatObj = { tarpaulin: { parseCoverage: (file: Document): CoverageResult => { const scripts = file.getElementsByTagName("script"); - if (scripts.length == 0) { + if (scripts.length === 0) { return new InvalidReportDocumentError(); } const data = scripts[0].text; |
