Skip to content

Commit

Permalink
fix: remove unused mapbox var checks
Browse files Browse the repository at this point in the history
  • Loading branch information
viet nguyen committed Feb 24, 2024
1 parent d5b47a7 commit a4e7e8a
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/db/utils/jobs/MapTiles/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,10 @@ import { config } from 'dotenv'

config({ path: ['.env.local', '.env'] })

const mapboxUsername = process.env.MAPBOX_USERNAME ?? ''
const mapboxToken = process.env.MAPBOX_TOKEN ?? ''
const workingDir = process.env.MAPTILES_WORKING_DIR ?? ''

if (mapboxUsername.trim() === '') {
throw new Error('MAPBOX_USERNAME not set')
}

if (mapboxToken.trim() === '') {
throw new Error('MAPBOX_TOKEN not set')
}

if (workingDir.trim() === '') {
throw new Error('MAPTILES_WORKING_DIR not set')
}

export { mapboxUsername, mapboxToken, workingDir }
export { workingDir }

0 comments on commit a4e7e8a

Please sign in to comment.