mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
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:
parent
4b36afb2fa
commit
8d5a3d9dfb
2 changed files with 1 additions and 2 deletions
|
|
@ -31,7 +31,6 @@
|
|||
"process": false
|
||||
},
|
||||
"rules": {
|
||||
"yoda": 0,
|
||||
"no-mixed-spaces-and-tabs": 0,
|
||||
"semi-spacing": 0,
|
||||
"no-tabs": 0,
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue