Jedi code format: remove unneeded conditions. Issue #41146 related.

This commit is contained in:
DomingoGP 2024-09-17 21:16:43 +02:00
parent 7a0867281e
commit d04502a298
2 changed files with 3 additions and 3 deletions

View File

@ -341,7 +341,7 @@ begin
end;
end;
finally
if fcConverter.ConvertError and (IDEMessagesWindow<>nil) then
if fcConverter.ConvertError then
ShowIdeMessages;
fcConverter.Free;
end;
@ -388,7 +388,7 @@ begin
DiffMergeEditor(srcEditor, outputstr, BlockBegin.Y, BlockEnd.Y);
end;
finally
if fcConverter.ConvertError and (IDEMessagesWindow<>nil) then
if fcConverter.ConvertError then
ShowIdeMessages;
fcConverter.Free;
end;

View File

@ -130,7 +130,7 @@ begin
SendStatusMessage(pciUnit.FileName, 'Formatted unit', mtProgress, -1, -1);
Inc(fiConvertCount);
end
else if IDEMessagesWindow<>nil then
else
TJcfIdeMain.ShowIdeMessages;
end;