diff --git a/src/renderer/src/components/right-sidebar/SourceControl.tsx b/src/renderer/src/components/right-sidebar/SourceControl.tsx index 3e3a1c47f50..4fafa4ff4c4 100644 --- a/src/renderer/src/components/right-sidebar/SourceControl.tsx +++ b/src/renderer/src/components/right-sidebar/SourceControl.tsx @@ -970,12 +970,6 @@ function UncommittedEntryRow({ title={entry.area === 'untracked' ? 'Revert untracked file' : 'Discard changes'} onClick={(event) => { event.stopPropagation() - if ( - entry.area === 'untracked' && - !window.confirm(`Delete untracked file "${entry.path}"? This cannot be undone.`) - ) { - return - } void onDiscard() }} />