Skip to content

Commit

Permalink
fix: linting (npm#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenseng authored Jul 25, 2022
1 parent d825726 commit deb1001
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ class Config {
// might be a security hazard, which was the intention.
try {
this.setCredentialsByURI(reg, creds)
// eslint-disable-next-line no-empty
} catch (_) {}
process.emit('timeEnd', 'config:load:credentials')

Expand Down Expand Up @@ -654,6 +655,7 @@ class Config {
// saved back to the .npmrc file, so we're good.
try {
this.setCredentialsByURI(reg, creds)
// eslint-disable-next-line no-empty
} catch (_) {}
}

Expand Down
3 changes: 2 additions & 1 deletion scripts/example.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,5 @@ config.load().then(async () => {
}
}
console.log('argv:', { raw: config.argv, parsed: config.parsedArgv })
})
return undefined
}).catch(() => {})

0 comments on commit deb1001

Please sign in to comment.