command/QueueCommands: eliminate duplicate code in handle_addid()

This commit is contained in:
Max Kellermann 2016-06-13 18:28:03 +02:00
parent e83685d667
commit 021519f295

View File

@ -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);