From f90685b8d5a092e7079e9d7edeebb00abddc1e21 Mon Sep 17 00:00:00 2001 From: Regis Date: Fri, 20 Jan 2017 09:07:02 -0700 Subject: [PATCH] remove bitwise - make code human readable --- app/assets/javascripts/vue_pipelines_index/stage.js.es6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/assets/javascripts/vue_pipelines_index/stage.js.es6 b/app/assets/javascripts/vue_pipelines_index/stage.js.es6 index 2cf2ad0a78e..4e85f16ebc5 100644 --- a/app/assets/javascripts/vue_pipelines_index/stage.js.es6 +++ b/app/assets/javascripts/vue_pipelines_index/stage.js.es6 @@ -1,5 +1,5 @@ /* global Vue, Flash, gl */ -/* eslint-disable no-param-reassign, no-bitwise */ +/* eslint-disable no-param-reassign */ ((gl) => { gl.VueStage = Vue.extend({ @@ -40,11 +40,11 @@ keepGraph(e) { const { target } = e; - if (~target.className.indexOf('js-ci-action-icon')) return null; + if (target.className.indexOf('js-ci-action-icon') >= 0) return null; if ( target.parentElement && - ~target.parentElement.className.indexOf('js-ci-action-icon') + (target.parentElement.className.indexOf('js-ci-action-icon') >= 0) ) return null; return e.stopPropagation();