Minor changes

This commit is contained in:
cgonzalez 2021-03-24 13:47:56 +00:00
parent cf74ef1d17
commit 7974866e33
2 changed files with 2 additions and 4 deletions

View File

@ -266,9 +266,7 @@ OgrFormat.prototype.sendResponse = function (opts, callback) {
logger.info({ custom: true }, 'cleanup');
// unlink dump file (sync to avoid race condition)
console.log('removing', dumpfile);
try {
fs.unlinkSync(dumpfile);
} catch (e) {
try { fs.unlinkSync(dumpfile); } catch (e) {
if (e.code !== 'ENOENT') {
console.log('Could not unlink dumpfile ' + dumpfile + ': ' + e);
}
@ -286,6 +284,7 @@ function ExportRequest (ostream, callback, beforeSink) {
this.canceled = false;
var that = this;
this.ostream.on('close', function () {
logger.info({ custom: true }, 'close ExportRequest');
that.canceled = true;

View File

@ -1,7 +1,6 @@
'use strict';
var Ogr = require('./../ogr');
var serverOptions = require('./../../../server-options');
function CsvFormat () {}