mirror of
https://github.com/pnpm/pnpm.git
synced 2026-04-05 07:46:10 -04:00
refactor(error): return type annotation (#7868)
This commit is contained in:
@@ -54,7 +54,7 @@ export class FetchError extends PnpmError {
|
||||
}
|
||||
}
|
||||
|
||||
function hideAuthInformation (authHeaderValue: string) {
|
||||
function hideAuthInformation (authHeaderValue: string): string {
|
||||
const [authType, token] = authHeaderValue.split(' ')
|
||||
return `${authType} ${token.substring(0, 4)}[hidden]`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user