From 993df0fd289d4426c633fd6e6d12bffe6061599d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 11 Aug 2015 21:54:29 +0200 Subject: command/{Queue,Other}: eliminate local "bool" variable --- src/command/QueueCommands.cxx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/command/QueueCommands.cxx') diff --git a/src/command/QueueCommands.cxx b/src/command/QueueCommands.cxx index d461170fd..561ef1027 100644 --- a/src/command/QueueCommands.cxx +++ b/src/command/QueueCommands.cxx @@ -249,13 +249,11 @@ CommandResult handle_playlistinfo(Client &client, ConstBuffer args) { unsigned start = 0, end = std::numeric_limits::max(); - bool ret; if (args.size == 1 && !check_range(client, &start, &end, args.front())) return CommandResult::ERROR; - ret = playlist_print_info(client, client.playlist, start, end); - if (!ret) + if (!playlist_print_info(client, client.playlist, start, end)) return print_playlist_result(client, PlaylistResult::BAD_RANGE); -- cgit v1.2.3