From c09f952801470e172be98c7588d42c829ed77872 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 3 Oct 2009 18:21:09 +0200 Subject: [PATCH] screen_artist: removed superfluous braces --- src/screen_artist.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) 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() */ -- 2.30.2