Remove unnecessary variables
This commit is contained in:
@@ -56,9 +56,6 @@ NamedMapMapConfigProvider.prototype.getMapConfig = function(callback) {
|
||||
return callback(this.err, this.mapConfig, this.rendererParams, this.context);
|
||||
}
|
||||
|
||||
var mapConfig = null;
|
||||
var apiKey;
|
||||
|
||||
var context = {};
|
||||
|
||||
this.getTemplate((err, template) => {
|
||||
@@ -73,14 +70,12 @@ NamedMapMapConfigProvider.prototype.getMapConfig = function(callback) {
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
this.metadataBackend.getUserMapKey(this.owner, (err, _apiKey) => {
|
||||
this.metadataBackend.getUserMapKey(this.owner, (err, apiKey) => {
|
||||
if (err) {
|
||||
this.err = err;
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
apiKey = _apiKey;
|
||||
|
||||
var templateParams = {};
|
||||
if (this.config) {
|
||||
try {
|
||||
@@ -117,14 +112,12 @@ NamedMapMapConfigProvider.prototype.getMapConfig = function(callback) {
|
||||
}
|
||||
};
|
||||
|
||||
this.mapConfigAdapter.getMapConfig(this.owner, requestMapConfig, rendererParams, context, (err, _mapConfig) => {
|
||||
this.mapConfigAdapter.getMapConfig(this.owner, requestMapConfig, rendererParams, context, (err, mapConfig) => {
|
||||
if (err) {
|
||||
this.err = err;
|
||||
return callback(err);
|
||||
}
|
||||
|
||||
mapConfig = _mapConfig;
|
||||
|
||||
this.userLimitsBackend.getRenderLimits(this.owner, this.params.api_key, (err, renderLimits) => {
|
||||
if (err) {
|
||||
this.err = err;
|
||||
|
||||
Reference in New Issue
Block a user