Code

screen_artist: removed superfluous braces
authorMax Kellermann <max@duempel.org>
Sat, 3 Oct 2009 16:21:09 +0000 (18:21 +0200)
committerMax Kellermann <max@duempel.org>
Sat, 3 Oct 2009 16:21:09 +0000 (18:21 +0200)
src/screen_artist.c

index 11bd468699e7bfcf0ee2ea019cb3e685038ac3e5..5c0ff30994d3a025ca330b70658a0bb7e3ebcf89 100644 (file)
@@ -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() */