From 021519f29574042be2e5632ae8e10a877103fc6d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 13 Jun 2016 18:28:03 +0200 Subject: [PATCH] command/QueueCommands: eliminate duplicate code in handle_addid() --- src/command/QueueCommands.cxx | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/command/QueueCommands.cxx b/src/command/QueueCommands.cxx index 0c3e1699a..8e51b22d0 100644 --- a/src/command/QueueCommands.cxx +++ b/src/command/QueueCommands.cxx @@ -122,8 +122,6 @@ handle_addid(Client &client, Request args, Response &r) try { client.partition.MoveId(added_id, to); - r.Format("Id: %u\n", added_id); - return CommandResult::OK; } catch (...) { /* rollback */ client.partition.DeleteId(added_id);