From 8d7eac1b65fededabc8b083db593683c370e9981 Mon Sep 17 00:00:00 2001 From: Kenneth Geisshirt Date: Thu, 31 Aug 2017 10:18:10 +0200 Subject: [PATCH] Fix linter error (#1271) --- lib/extensions.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/extensions.js b/lib/extensions.js index f2f034c5..48afae4c 100644 --- a/lib/extensions.js +++ b/lib/extensions.js @@ -107,7 +107,7 @@ module.exports = function(realmConstructor) { if (realmConstructor.Sync._setFeatureToken) { realmConstructor.Sync.setFeatureToken = function(featureToken) { - if (typeof featureToken !== 'string' || !featureToken instanceof String) { + if (typeof featureToken !== 'string' || !(featureToken instanceof String)) { throw new Error("featureToken should be a string"); }