From 2dfb89146584b9bd12ed6ebd701e6efffe3d9043 Mon Sep 17 00:00:00 2001 From: MeowRain Date: Sun, 11 Jan 2026 21:58:01 +0800 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- src/api/response.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/response.ts b/src/api/response.ts index 7076b00..01e65fc 100644 --- a/src/api/response.ts +++ b/src/api/response.ts @@ -6,6 +6,6 @@ export interface ApiResponse { data: T; } -export const isApiSuccess = (response: ApiResponse | any): boolean => { +export const isApiSuccess = (response: ApiResponse): boolean => { return response?.success === true || response?.code === 0 || response?.code === "0"; };