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: []
|
||||
});
|
||||
|
||||
if ( ! tree.Reference.setVersion(this.options.mapnik_version) ) {
|
||||
callback(new Error("Could not set mapnik version to " + this.options.mapnik_version), null);
|
||||
return;
|
||||
if (!tree.Reference.setVersion(this.options.mapnik_version)) {
|
||||
return callback(new Error("Could not set mapnik version to " + this.options.mapnik_version), null);
|
||||
}
|
||||
|
||||
var output = [];
|
||||
|
@ -16,11 +16,11 @@ tree.Reference = {
|
||||
/// @param version target mapnik version
|
||||
/// @return true on success, false on error (unsupported mapnik version)
|
||||
tree.Reference.setVersion = function(version) {
|
||||
if ( mapnik_reference.version.hasOwnProperty(version) ) {
|
||||
tree.Reference.data = mapnik_reference.version[version];
|
||||
return true;
|
||||
if (mapnik_reference.version.hasOwnProperty(version)) {
|
||||
tree.Reference.data = mapnik_reference.version[version];
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user