return empty array when obtaining queued IDs in sickrage cacher

pull/158/head
Drewster727 9 years ago
parent 256cfbc80f
commit 770b447d5d

@ -72,8 +72,7 @@ namespace PlexRequests.Services
public int[] QueuedIds() public int[] QueuedIds()
{ {
var tv = Cache.Get<SickrageShows>(CacheKeys.SickRageQueued); var tv = Cache.Get<SickrageShows>(CacheKeys.SickRageQueued);
var values = tv?.data.Values.Select(x => x.tvdbid).ToArray(); return tv?.data.Values.Select(x => x.tvdbid).ToArray() ?? new int[] { };
return values;
} }
} }
} }
Loading…
Cancel
Save