Commit 021519f2 authored by Max Kellermann's avatar Max Kellermann

command/QueueCommands: eliminate duplicate code in handle_addid()

parent e83685d6
...@@ -122,8 +122,6 @@ handle_addid(Client &client, Request args, Response &r) ...@@ -122,8 +122,6 @@ handle_addid(Client &client, Request args, Response &r)
try { try {
client.partition.MoveId(added_id, to); client.partition.MoveId(added_id, to);
r.Format("Id: %u\n", added_id);
return CommandResult::OK;
} catch (...) { } catch (...) {
/* rollback */ /* rollback */
client.partition.DeleteId(added_id); client.partition.DeleteId(added_id);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment