code refactor

This commit is contained in:
jaidans 2024-09-26 11:53:15 +05:30
parent eeb4913de0
commit 2eb98643d6

View File

@ -54,15 +54,7 @@ namespace NTwain.Internals
#endregion
var pending = new TWPendingXfers();
ReturnCode rc;
if (xferImage)
{
rc = ReturnCode.Success;
}
else
{
rc = session.DGControl.PendingXfers.Get(pending);
}
var rc = xferImage ? ReturnCode.Success : session.DGControl.PendingXfers.Get(pending);
if (rc == ReturnCode.Success)
{