From 3fd122fd1afc615fa4285a5ab70b77363f4c51b8 Mon Sep 17 00:00:00 2001 From: Craig Gidney Date: Thu, 5 May 2016 01:57:53 -0400 Subject: [PATCH] Typo fix --- src/base/Seq.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/base/Seq.js b/src/base/Seq.js index e757f4d1..73d0a663 100644 --- a/src/base/Seq.js +++ b/src/base/Seq.js @@ -26,10 +26,10 @@ const emptyFallback = (result, alternative, errorMessage) => { if (result !== EMPTY_SYGIL) { return result; } - if (obj === THROW_IF_EMPTY) { + if (alternative === THROW_IF_EMPTY) { throw new Error(errorMessage); } - return obj; + return alternative; };