Skip to content

Commit

Permalink
- Removed conditional shorthand operator
Browse files Browse the repository at this point in the history
  • Loading branch information
iamvishnusankar committed Nov 12, 2020
1 parent aa8cd4e commit ba2173d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/next-sitemap/src/path/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export const KNOWN_PATHS = {

export const getConfigFilePath = () => {
const args = minimist(process.argv.slice(2))
const configPath = getPath(args?.config || 'next-sitemap.js')
const configPath = getPath(args.config || 'next-sitemap.js')

if (!fs.existsSync(configPath)) {
throw new Error(`${configPath} does not exist.`)
Expand Down

0 comments on commit ba2173d

Please sign in to comment.