Skip to content

Commit

Permalink
chore: format
Browse files Browse the repository at this point in the history
  • Loading branch information
n4bb12 committed Jan 22, 2023
1 parent e7c5bd3 commit e65fadd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions src/client/plugin/usage-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ export function getUsageInfo() {
)
: `//${location.host}${location.pathname}`
const authToken = localStorage.getItem("npm")
return [
`npm config set ${configBase}:_authToken "${authToken}"`,
].join("\n")
return [`npm config set ${configBase}:_authToken "${authToken}"`].join("\n")
}
4 changes: 1 addition & 3 deletions src/npm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,7 @@ export function getNpmSaveCommands(registry: string, token: string) {
const url = new URL(registry)
const baseUrl = url.host + url.pathname

return [
`npm config set //${baseUrl}:_authToken "${token}"`,
]
return [`npm config set //${baseUrl}:_authToken "${token}"`]
}

export function saveNpmToken(token: string) {
Expand Down

0 comments on commit e65fadd

Please sign in to comment.