fix: make stat variable name more consistent
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
parent
d78812d449
commit
2c54da134e
1 changed files with 3 additions and 3 deletions
|
|
@ -89,9 +89,9 @@ const startWithInputFile = async (inputfile) => {
|
||||||
|
|
||||||
inputfile = path.resolve(process.cwd(), inputfile);
|
inputfile = path.resolve(process.cwd(), inputfile);
|
||||||
|
|
||||||
const tilesStats = fs.statSync(inputfile);
|
const inputfileStats = fs.statSync(inputfile);
|
||||||
if (!tilesStats.isFile() || tilesStats.size === 0) {
|
if (!inputfileStats.isFile() || inputfileStats.size === 0) {
|
||||||
console.log(`ERROR: Not valid MBTiles or PMTiles file: ${inputfile}`);
|
console.log(`ERROR: Not a valid input file: ${inputfile}`);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue