We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e6604d commit 11a48e3Copy full SHA for 11a48e3
tests/Console.Tests/BlockingPop.cs
@@ -49,15 +49,15 @@ public void Execute()
49
// add items to list
50
for (int i = 1; i <= items; i++)
51
{
52
- redis.PushItemToList(listId, "item {0}".Fmt(i));
+ redis.PushItemToList(listId, $"item {i}");
53
}
54
55
do
56
57
var item = redis.BlockingPopItemFromList(listId, null);
58
59
// 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);
+ log.InfoFormat("{0}", string.IsNullOrEmpty(item) ? " list empty " : item);
61
62
System.Threading.Thread.Sleep(1000);
63
0 commit comments