From ed7807e372f7f50d43597d966a2314bdd7a7d6ff Mon Sep 17 00:00:00 2001 From: Mark Wubben Date: Fri, 18 Jan 2019 10:16:27 +0100 Subject: [PATCH] Linter fixes --- lib/serialize-error.js | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/serialize-error.js b/lib/serialize-error.js index 1cff9b8b0..ef07cb12b 100644 --- a/lib/serialize-error.js +++ b/lib/serialize-error.js @@ -113,6 +113,7 @@ function trySerializeError(err, shouldBeautifyStack) { if (lines[index].startsWith(' at')) { break; } + const next = index + 1; const end = next === lines.length || lines[next].startsWith(' at'); retval.summary += end ? lines[index] : lines[index] + '\n';