From 0d20e5d2a585b7887c9bd4b89cd5c8c32e476454 Mon Sep 17 00:00:00 2001 From: juha Date: Fri, 7 Jun 2013 11:21:17 +0000 Subject: [PATCH] IDE: cleanup code in DialogProgs. git-svn-id: trunk@41573 - --- ide/dialogprocs.pas | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/ide/dialogprocs.pas b/ide/dialogprocs.pas index bbe53fa0d8..f293c21f09 100644 --- a/ide/dialogprocs.pas +++ b/ide/dialogprocs.pas @@ -128,10 +128,8 @@ function RenameFileWithErrorDialogs(const SrcFilename, DestFilename: string; var DlgButtons: TMsgDlgButtons; begin - if SrcFilename=DestFilename then begin - Result:=mrOk; - exit; - end; + if SrcFilename=DestFilename then + exit(mrOk); repeat if FileProcs.RenameFileUTF8(SrcFilename,DestFilename) then begin InvalidateFileStateCache(SrcFilename);