refactor(error): return type annotation (#7868)
This commit is contained in:
1 file changed
+1
-1
@@ -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