Fix incorrect variable name

This commit is contained in:
Petr Sloup 2016-08-24 16:28:41 +02:00
parent e428ab60f1
commit 513e2dac8f

View file

@ -147,7 +147,7 @@ fs.stat(path.resolve(opts.config), function(err, stats) {
var stream = fs.createWriteStream(filename); var stream = fs.createWriteStream(filename);
console.log('Downloading sample data (' + filename + ') from ' + url); console.log('Downloading sample data (' + filename + ') from ' + url);
stream.on('finish', function() { stream.on('finish', function() {
return startWithMBTiles(mbtiles); return startWithMBTiles(filename);
}); });
return request.get(url).pipe(stream); return request.get(url).pipe(stream);
} }