diff --git a/src/NTwain/Internals/TransferLogic.cs b/src/NTwain/Internals/TransferLogic.cs index df5419a..c779894 100644 --- a/src/NTwain/Internals/TransferLogic.cs +++ b/src/NTwain/Internals/TransferLogic.cs @@ -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) {