Fix code style.
This commit is contained in:
parent
0c4de0dc38
commit
5b024a1465
@ -22,9 +22,8 @@ carto.Renderer.prototype.render = function render(m, callback) {
|
|||||||
effects: []
|
effects: []
|
||||||
});
|
});
|
||||||
|
|
||||||
if ( ! tree.Reference.setVersion(this.options.mapnik_version) ) {
|
if (!tree.Reference.setVersion(this.options.mapnik_version)) {
|
||||||
callback(new Error("Could not set mapnik version to " + this.options.mapnik_version), null);
|
return callback(new Error("Could not set mapnik version to " + this.options.mapnik_version), null);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var output = [];
|
var output = [];
|
||||||
|
@ -16,11 +16,11 @@ tree.Reference = {
|
|||||||
/// @param version target mapnik version
|
/// @param version target mapnik version
|
||||||
/// @return true on success, false on error (unsupported mapnik version)
|
/// @return true on success, false on error (unsupported mapnik version)
|
||||||
tree.Reference.setVersion = function(version) {
|
tree.Reference.setVersion = function(version) {
|
||||||
if ( mapnik_reference.version.hasOwnProperty(version) ) {
|
if (mapnik_reference.version.hasOwnProperty(version)) {
|
||||||
tree.Reference.data = mapnik_reference.version[version];
|
tree.Reference.data = mapnik_reference.version[version];
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user