From 5cb266838afd72f3849e2668e503ba949431b4f9 Mon Sep 17 00:00:00 2001 From: yflory Date: Wed, 5 Feb 2020 11:28:27 +0100 Subject: [PATCH] Fix syntax error --- lib/metadata.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/metadata.js b/lib/metadata.js index 677b2e5b5..2b3a0b737 100644 --- a/lib/metadata.js +++ b/lib/metadata.js @@ -236,7 +236,7 @@ Meta.createLineHandler = function (ref, errorHandler) { // which has since been archived. // Thus, accept both the first and second lines you process as valid initial state // preferring the second if it exists - if (index < 2 && line typeof(line) === 'object') { + if (index < 2 && line && typeof(line) === 'object') { // special case! ref.meta = line; return;