Skip to content

Commit 640503a

Browse files
committed
lint
1 parent 816df16 commit 640503a

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/plot_api/to_image.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ function toImage(gd, opts) {
146146
var width = clonedGd._fullLayout.width;
147147
var height = clonedGd._fullLayout.height;
148148

149-
Plotly.purge(clonedGd)
150-
document.body.removeChild(clonedGd)
149+
Plotly.purge(clonedGd);
150+
document.body.removeChild(clonedGd);
151151

152152
if(format === 'svg') {
153153
if(imageDataOnly) {
@@ -173,7 +173,7 @@ function toImage(gd, opts) {
173173
promise: true
174174
})
175175
.then(resolve)
176-
.catch(reject)
176+
.catch(reject);
177177
});
178178
}
179179

test/jasmine/tests/toimage_test.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
var Plotly = require('@lib');
22
var Lib = require('@src/lib');
33

4-
var d3 = require('d3');
54
var createGraphDiv = require('../assets/create_graph_div');
65
var destroyGraphDiv = require('../assets/destroy_graph_div');
76
var fail = require('../assets/fail_test');
@@ -21,7 +20,7 @@ describe('Plotly.toImage', function() {
2120
gd = createGraphDiv();
2221
});
2322

24-
afterEach(destroyGraphDiv)
23+
afterEach(destroyGraphDiv);
2524

2625
function createImage(url) {
2726
return new Promise(function(resolve, reject) {

0 commit comments

Comments
 (0)