Skip to content

Commit 1fb5f37

Browse files
committed
Update Service/FeedService.cs
1 parent 00b7f8b commit 1fb5f37

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Service/FeedService.cs

+8-5
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,16 @@ public FeedService(Source src, string user)
6060

6161
public IList<FeedEntity> GetList()
6262
{
63-
if (excep != null)
64-
{
65-
throw excep;
66-
}
6763
if (_list == null)
6864
{
69-
_list = service.GetList();
65+
if (excep != null)
66+
{
67+
_list = new List<FeedEntity>();
68+
}
69+
else
70+
{
71+
_list = service.GetList();
72+
}
7073
}
7174
return _list;
7275
}

0 commit comments

Comments
 (0)