From: Max Kellermann Date: Sat, 3 Oct 2009 16:21:09 +0000 (+0200) Subject: screen_artist: removed superfluous braces X-Git-Tag: release-0.16~202 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=c09f952801470e172be98c7588d42c829ed77872;p=ncmpc.git screen_artist: removed superfluous braces --- diff --git a/src/screen_artist.c b/src/screen_artist.c index 11bd468..5c0ff30 100644 --- a/src/screen_artist.c +++ b/src/screen_artist.c @@ -603,21 +603,17 @@ screen_artist_cmd(struct mpdclient *c, command_t cmd) case CMD_ADD: switch(mode) { case LIST_ARTISTS: - { - unsigned i; - for(i = browser.lw->selected_start; i <= browser.lw->selected_end; ++i) - { + for (unsigned i = browser.lw->selected_start; + i <= browser.lw->selected_end; ++i) { selected = g_ptr_array_index(artist_list, i); add_query(c, MPD_TAG_ARTIST, selected); cmd = CMD_LIST_NEXT; /* continue and select next item... */ } break; - } + case LIST_ALBUMS: - { - unsigned i; - for(i = browser.lw->selected_start; i <= browser.lw->selected_end; ++i) - { + for (unsigned i = browser.lw->selected_start; + i <= browser.lw->selected_end; ++i) { if(i == album_list->len + 1) add_query(c, MPD_TAG_ARTIST, artist); else if (i > 0) @@ -629,7 +625,6 @@ screen_artist_cmd(struct mpdclient *c, command_t cmd) } } break; - } case LIST_SONGS: /* handled by browser_cmd() */