Skip to content

Commit

Permalink
apply lint:js:fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Miko committed Jan 17, 2025
1 parent 30ac843 commit 9a533eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/serve_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ import { openMbTilesWrapper } from './mbtiles_wrapper.js';
import fs from 'node:fs';
import { fileURLToPath } from 'url';
const packageJson = JSON.parse(
fs.readFileSync(path.dirname(fileURLToPath(import.meta.url)) + '/../package.json', 'utf8'),
fs.readFileSync(
path.dirname(fileURLToPath(import.meta.url)) + '/../package.json',
'utf8',
),
);

const isLight = (packageJson.name.slice(-6) === '-light');
const isLight = packageJson.name.slice(-6) === '-light';
const serve_rendered = (
await import(`${!isLight ? `./serve_rendered.js` : `./serve_light.js`}`)
).serve_rendered;
Expand Down
2 changes: 1 addition & 1 deletion src/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const __dirname = path.dirname(fileURLToPath(import.meta.url));
const packageJson = JSON.parse(
fs.readFileSync(__dirname + '/../package.json', 'utf8'),
);
const isLight = (packageJson.name.slice(-6) === '-light');
const isLight = packageJson.name.slice(-6) === '-light';

const serve_rendered = (
await import(`${!isLight ? `./serve_rendered.js` : `./serve_light.js`}`)
Expand Down

0 comments on commit 9a533eb

Please sign in to comment.