Skip to content

Commit 11a48e3

Browse files
committed
Update BlockingPop.cs
1 parent 8e6604d commit 11a48e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/Console.Tests/BlockingPop.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,15 +49,15 @@ public void Execute()
4949
// add items to list
5050
for (int i = 1; i <= items; i++)
5151
{
52-
redis.PushItemToList(listId, "item {0}".Fmt(i));
52+
redis.PushItemToList(listId, $"item {i}");
5353
}
5454

5555
do
5656
{
5757
var item = redis.BlockingPopItemFromList(listId, null);
5858

5959
// log the popped item. if BRPOP timeout is null and list empty, I do not expect to print anything
60-
log.InfoFormat("{0}", item.IsNullOrEmpty() ? " list empty " : item);
60+
log.InfoFormat("{0}", string.IsNullOrEmpty(item) ? " list empty " : item);
6161

6262
System.Threading.Thread.Sleep(1000);
6363

0 commit comments

Comments
 (0)