Remove unneeded local variable.
This commit is contained in:
parent
8b846968e2
commit
44f43cdc0d
@ -129,10 +129,9 @@
|
||||
{
|
||||
var eventName = $"{message.Label}{INTEGRATION_EVENT_SUFIX}";
|
||||
var messageData = Encoding.UTF8.GetString(message.Body);
|
||||
var processed = await ProcessEvent(eventName, messageData);
|
||||
|
||||
// Complete the message so that it is not received again.
|
||||
if (processed)
|
||||
if (await ProcessEvent(eventName, messageData))
|
||||
{
|
||||
await _subscriptionClient.CompleteAsync(message.SystemProperties.LockToken);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user