Skip to content

Commit

Permalink
NIFI-12411: chore remove redundant variable assignment
Browse files Browse the repository at this point in the history
Signed-off-by: Umar Hussain <umarhussain.work@gmail.com>
  • Loading branch information
umarhussain15 committed Dec 15, 2023
1 parent 1dd6083 commit 8081da9
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -335,9 +335,7 @@ private static String convertMapToJSONString(Map<String, Object> headers) throws
@Override
protected synchronized AMQPConsumer createAMQPWorker(final ProcessContext context, final Connection connection) {
try {
final AMQPConsumer amqpConsumer = new AMQPConsumer(connection, queueName, autoAcknowledge,prefetchCount, getLogger());

return amqpConsumer;
return new AMQPConsumer(connection, queueName, autoAcknowledge, prefetchCount, getLogger());
} catch (final IOException ioe) {
throw new ProcessException("Failed to connect to AMQP Broker", ioe);
}
Expand Down

0 comments on commit 8081da9

Please sign in to comment.