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

This commit is contained in:
Khải authored and GitHub committed 2024-04-08 20:20:32 +02:00
1 parent a5b0780eb8
commit 67f749fb71
1 file changed
+1 -1
+1 -1
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]`
}