File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ tasks.push(function(done) {
75
75
} , function ( ) {
76
76
prependFile ( pathToPlotlyDistWithMeta , header , common . throwOnError ) ;
77
77
78
- makeSchema ( pathToPlotlyDistWithMeta , pathToSchema ) ( ) ;
78
+ makeSchema ( pathToPlotlyDistWithMeta , pathToSchema ) ;
79
79
done ( ) ;
80
80
} ) ;
81
81
} ) ;
Original file line number Diff line number Diff line change @@ -3,13 +3,11 @@ var path = require('path');
3
3
var plotlyNode = require ( './plotly_node' ) ;
4
4
5
5
module . exports = function makeSchema ( plotlyPath , schemaPath ) {
6
- return function ( ) {
7
- var Plotly = plotlyNode ( plotlyPath ) ;
6
+ var Plotly = plotlyNode ( plotlyPath ) ;
8
7
9
- var plotSchema = Plotly . PlotSchema . get ( ) ;
10
- var plotSchemaStr = JSON . stringify ( plotSchema , null , 1 ) ;
11
- fs . writeFileSync ( schemaPath , plotSchemaStr ) ;
8
+ var plotSchema = Plotly . PlotSchema . get ( ) ;
9
+ var plotSchemaStr = JSON . stringify ( plotSchema , null , 1 ) ;
10
+ fs . writeFileSync ( schemaPath , plotSchemaStr ) ;
12
11
13
- console . log ( 'ok ' + path . basename ( schemaPath ) ) ;
14
- } ;
12
+ console . log ( 'ok ' + path . basename ( schemaPath ) ) ;
15
13
} ;
You can’t perform that action at this time.
0 commit comments