From d7c1ba9fa75f5ca5f555ce33bd955ce51959d8fd Mon Sep 17 00:00:00 2001 From: Chintan Rathod Date: Thu, 8 May 2025 11:09:43 -0400 Subject: [PATCH] Potential fix for code scanning alert no. 14: Use of externally-controlled format string Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- src/utils/sports-api.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/sports-api.ts b/src/utils/sports-api.ts index da233fb..179fe5d 100644 --- a/src/utils/sports-api.ts +++ b/src/utils/sports-api.ts @@ -120,7 +120,7 @@ export const getMatchStreams = async (source: string | null, id: string): Promis console.warn(`No streams found for source ${src} and match ${id}`); } } catch (error) { - console.error(`Error fetching streams for match ${id} from source ${src}:`, error); + console.error('Error fetching streams for match %s from source %s:', id, src, error); } } return allStreams;