From 67f749fb7181efcbbadc6b4e01c274d8ffb2f421 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kh=E1=BA=A3i?= Date: Tue, 9 Apr 2024 01:20:32 +0700 Subject: [PATCH] refactor(error): return type annotation (#7868) --- packages/error/src/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/error/src/index.ts b/packages/error/src/index.ts index 7b3a2f04e7..9bd8ed9e6e 100644 --- a/packages/error/src/index.ts +++ b/packages/error/src/index.ts @@ -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]` }