Permalink
Browse files

remove unneeded log := nil

  • Loading branch information...
pavel.mash
pavel.mash committed Oct 30, 2018
1 parent 6b47c9e commit cba1a2c281de1b47e2755f7642c3d78e5006b678
Showing with 1 addition and 3 deletions.
  1. +1 −3 SynDBODBC.pas
@@ -1244,15 +1244,13 @@ procedure TODBCConnection.Disconnect;
try
inherited Disconnect; // flush any cached statement
finally
if (ODBC<>nil) and (fDbc<>nil) then begin
if (ODBC<>nil) and (fDbc<>nil) then
with ODBC do begin
log := SynDBLog.Enter(self{$ifndef DELPHI5OROLDER},'Disconnect'{$endif});
Disconnect(fDbc);
FreeHandle(SQL_HANDLE_DBC,fDbc);
fDbc := nil;
end;
end else
log := nil;
end;
end;

0 comments on commit cba1a2c

Please sign in to comment.