mirror of
https://github.com/soukoku/ntwain.git
synced 2026-02-25 13:04:07 +08:00
code refactor
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user