Skip to content

Commit 680abd2

Browse files
committed
Update syntax
1 parent c53c822 commit 680abd2

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

src/plots/geo/geo.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@ var createGeoZoom = require('./zoom');
2626
var constants = require('./constants');
2727

2828
var geoUtils = require('../../lib/geo_location_utils');
29-
var getFitboundsLonRange = geoUtils.getFitboundsLonRange;
30-
var unwrapLonRange = geoUtils.unwrapLonRange;
29+
const { getFitboundsLonRange, unwrapLonRange } = geoUtils;
3130
var topojsonUtils = require('../../lib/topojson_utils');
3231
var topojsonFeature = require('topojson-client').feature;
3332

src/plots/geo/layout_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
var Lib = require('../../lib');
44
var handleSubplotDefaults = require('../subplot_defaults');
55
var getSubplotData = require('../get_data').getSubplotData;
6-
var unwrapLonRange = require('../../lib/geo_location_utils').unwrapLonRange;
6+
const { unwrapLonRange } = require('../../lib/geo_location_utils');
77

88
var constants = require('./constants');
99
var layoutAttributes = require('./layout_attributes');

0 commit comments

Comments
 (0)