From 15930182a7ca048a2472e0120650646542b31614 Mon Sep 17 00:00:00 2001 From: Kevin J Hoerr Date: Thu, 12 Dec 2019 15:39:06 -0500 Subject: Use nullish-coalescing op for env var assignments --- src/formats.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/formats.ts') 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; -- cgit