From 2f59ec5487e6b99d567cd267a21fca4393a04fd5 Mon Sep 17 00:00:00 2001 From: Evangeline Mmayie Date: Sat, 21 Nov 2026 16:52:12 +0100 Subject: [PATCH] fix(frontend): drop the redundant fragment in the Git panel The "not a Git repository" message was wrapped in a fragment holding a single child, which Sonar flags (typescript:S6749). Co-Authored-By: Claude Opus 5.5 --- frontend/src/components/GitPanel.tsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/components/GitPanel.tsx b/frontend/src/components/GitPanel.tsx index d7f0b30af6..54d5260272 100644 --- a/frontend/src/components/GitPanel.tsx +++ b/frontend/src/components/GitPanel.tsx @@ -462,11 +462,7 @@ export default function GitPanel( )} )} - {!busy && mode === 'norepo' && ( - <> -

This folder is not a Git repository.

- - )} + {!busy && mode === 'norepo' &&

This folder is not a Git repository.

} {!busy && mode === 'repo' && ( <>