aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/QueueCommands.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-08-11 21:54:29 +0200
committerMax Kellermann <max@duempel.org>2015-08-11 21:54:29 +0200
commit993df0fd289d4426c633fd6e6d12bffe6061599d (patch)
treee0f9d7b7477568f3b7dacf36b5f24d54ad9e73b8 /src/command/QueueCommands.cxx
parent4294fdb0b26ec6af77d1fc671e1b88941af10bd2 (diff)
downloadmpd-993df0fd289d4426c633fd6e6d12bffe6061599d.tar.gz
mpd-993df0fd289d4426c633fd6e6d12bffe6061599d.tar.xz
mpd-993df0fd289d4426c633fd6e6d12bffe6061599d.zip
command/{Queue,Other}: eliminate local "bool" variable
Diffstat (limited to '')
-rw-r--r--src/command/QueueCommands.cxx4
1 files changed, 1 insertions, 3 deletions
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<const char *> args)
{
unsigned start = 0, end = std::numeric_limits<unsigned>::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);