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

fix: make eslint happy #75

Merged
merged 1 commit into from
Jul 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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(() => {})