From: Jonathan Neuschäfer Date: Sat, 24 Apr 2010 09:01:23 +0000 (+0100) Subject: screen_lyrics: some cleanup X-Git-Tag: release-0.17~10 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=fd4989c60e2b51b10534ad87583bd4408c7bfe21;p=ncmpc.git screen_lyrics: some cleanup --- diff --git a/src/screen_lyrics.c b/src/screen_lyrics.c index 4d1122b..152b38d 100644 --- a/src/screen_lyrics.c +++ b/src/screen_lyrics.c @@ -303,25 +303,18 @@ lyrics_cmd(struct mpdclient *c, command_t cmd) screen_status_message (_("Lyrics saved")); return true; case CMD_DELETE: - { - int success; - - if (current.loader == NULL && current.artist != NULL && - current.title != NULL) { - success = delete_lyr_hd(); - switch (success) { - case 0: - screen_status_message - (_("Lyrics deleted")); - break; - case -1: - screen_status_message - (_("No saved lyrics")); - break; - } + if (current.loader == NULL && current.artist != NULL && + current.title != NULL) { + switch (delete_lyr_hd()) { + case 0: + screen_status_message (_("Lyrics deleted")); + break; + case -1: + screen_status_message (_("No saved lyrics")); + break; } - return true; } + return true; case CMD_LYRICS_UPDATE: if (c->song != NULL) { screen_lyrics_load(c->song);