fix: brace-style

```
/Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/app/notebook/paragraph/paragraph.controller.js (1/0)
  ✖  67:39  Closing curly brace should be on the same line as opening curly brace or on the line after the previous block  brace-style

/Users/1ambda/github/apache/apache-zeppelin/zeppelin-master/zeppelin-web/src/app/visualization/builtins/visualization-scatterchart.js (1/0)
  ✖  228:66  Closing curly brace should be on the same line as opening curly brace or on the line after the previous block  brace-style
```
This commit is contained in:
1ambda 2017-04-15 00:41:30 +09:00
parent cde8a2d2d2
commit 7aa4b1aae6
3 changed files with 4 additions and 3 deletions

View file

@ -31,7 +31,6 @@
"process": false
},
"rules": {
"brace-style": 0,
"one-var": 0,
"prefer-rest-params": 0,
"no-useless-constructor": 0,

View file

@ -64,7 +64,8 @@ function ParagraphCtrl($scope, $rootScope, $route, $window, $routeParams, $locat
runParagraph: function(paragraphId) {
if (paragraphId) {
var filtered = $scope.parentNote.paragraphs.filter(function(x) {
return x.id === paragraphId;});
return x.id === paragraphId;
});
if (filtered.length === 1) {
var paragraph = filtered[0];
websocketMsgSrv.runParagraph(paragraph.id, paragraph.title, paragraph.text,

View file

@ -225,7 +225,8 @@ export default class ScatterchartVisualization extends Nvd3ChartVisualization {
// TODO remove sort and dedup after bump to nvd3 > 1.8.5
var d3gvalues = d3g[grpNameIndex[grpName]].values;
d3gvalues.sort(function(a,b){
return ((a['x'] - b['x']) || (a['y'] - b['y']))});
return ((a['x'] - b['x']) || (a['y'] - b['y']))
});
for (var i = 0; i < d3gvalues.length - 1; ){
if ( (Math.abs(d3gvalues[i]['x'] - d3gvalues[i+1]['x']) < epsilon) &&