fix: yoda

```
/Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/app/handsontable/handsonHelper.js
  160:49  error  Expected literal to be on the right side of ===  yoda
```
This commit is contained in:
1ambda 2017-04-15 00:24:15 +09:00
parent 4b36afb2fa
commit 8d5a3d9dfb
2 changed files with 1 additions and 2 deletions

View file

@ -31,7 +31,6 @@
"process": false
},
"rules": {
"yoda": 0,
"no-mixed-spaces-and-tabs": 0,
"semi-spacing": 0,
"no-tabs": 0,

View file

@ -157,7 +157,7 @@ export default class HandsonHelper {
cellProperties.format = '0,0.[00000]';
td.style.textAlign = 'left';
Handsontable.renderers.NumericRenderer.apply(this, arguments);
} else if (value.length > '%html'.length && '%html ' === value.substring(0, '%html '.length)) {
} else if (value.length > '%html'.length && value.substring(0, '%html '.length) === '%html ') {
td.innerHTML = value.substring('%html'.length);
} else {
Handsontable.renderers.TextRenderer.apply(this, arguments);