mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
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:
parent
cde8a2d2d2
commit
7aa4b1aae6
3 changed files with 4 additions and 3 deletions
|
|
@ -31,7 +31,6 @@
|
|||
"process": false
|
||||
},
|
||||
"rules": {
|
||||
"brace-style": 0,
|
||||
"one-var": 0,
|
||||
"prefer-rest-params": 0,
|
||||
"no-useless-constructor": 0,
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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) &&
|
||||
|
|
|
|||
Loading…
Reference in a new issue