refactor(error): return type annotation (#7868)

This commit is contained in:
Khải
2024-04-09 01:20:32 +07:00
committed by GitHub
parent a5b0780eb8
commit 67f749fb71

View File

@@ -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]`
}