Skip to content
This repository has been archived by the owner on Nov 3, 2022. It is now read-only.

Commit

Permalink
fix: linting (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
jenseng committed 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
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
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.