Fix code style.

This commit is contained in:
Tom MacWright 2012-08-13 11:15:45 -04:00
parent 0c4de0dc38
commit 5b024a1465
2 changed files with 6 additions and 7 deletions

View File

@ -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 = [];

View File

@ -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;
}
};