From 24759a529f4d2eb5107f871939b50f817a60dd86 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 11 Dec 2017 18:06:12 +0100 Subject: [PATCH] remove double negation --- src/app/editor/contextualListener.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/editor/contextualListener.js b/src/app/editor/contextualListener.js index c580e9f685..4272caddb9 100644 --- a/src/app/editor/contextualListener.js +++ b/src/app/editor/contextualListener.js @@ -120,7 +120,7 @@ class ContextualListener { _getFn (functions, name) { for (var x in functions) { - if (!!~functions[x].indexOf(name)) { + if (~functions[x].indexOf(name)) { var fn = functions[x] break }