aboutsummaryrefslogtreecommitdiffstats
path: root/src/command/StickerCommands.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/StickerCommands.cxx
parent4294fdb0b26ec6af77d1fc671e1b88941af10bd2 (diff)
downloadmpd-993df0fd289d4426c633fd6e6d12bffe6061599d.tar.gz
mpd-993df0fd289d4426c633fd6e6d12bffe6061599d.tar.xz
mpd-993df0fd289d4426c633fd6e6d12bffe6061599d.zip
command/{Queue,Other}: eliminate local "bool" variable
Diffstat (limited to 'src/command/StickerCommands.cxx')
-rw-r--r--src/command/StickerCommands.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/command/StickerCommands.cxx b/src/command/StickerCommands.cxx
index 8979d53a4..9dda3c65d 100644
--- a/src/command/StickerCommands.cxx
+++ b/src/command/StickerCommands.cxx
@@ -166,17 +166,15 @@ handle_sticker_song(Client &client, ConstBuffer<const char *> args)
}
}
- bool success;
struct sticker_song_find_data data = {
client,
args[3],
};
- success = sticker_song_find(*db, base_uri, data.name,
- op, value,
- sticker_song_find_print_cb, &data,
- error);
- if (!success) {
+ if (!sticker_song_find(*db, base_uri, data.name,
+ op, value,
+ sticker_song_find_print_cb, &data,
+ error)) {
if (error.IsDefined())
return print_error(client, error);