aboutsummaryrefslogtreecommitdiffstats
path: root/src/queue_save.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/queue_save.c13
1 files changed, 3 insertions, 10 deletions
diff --git a/src/queue_save.c b/src/queue_save.c
index 16561537d..b09f1ecc0 100644
--- a/src/queue_save.c
+++ b/src/queue_save.c
@@ -45,16 +45,9 @@ queue_save(FILE *fp, const struct queue *queue)
static struct song *
get_song(const char *uri)
{
- struct song *song;
-
- song = db_get_song(uri);
- if (song != NULL)
- return song;
-
- if (uri_has_scheme(uri))
- return song_remote_new(uri);
-
- return NULL;
+ return uri_has_scheme(uri)
+ ? song_remote_new(uri)
+ : db_get_song(uri);
}
void