Skip to content

Commit 202cd14

Browse files
committed
Debugging aids cleanup
1 parent a81ee8a commit 202cd14

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

StackExchange.Redis/StackExchange/Redis/DebuggingAids.cs

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,19 +110,15 @@ internal partial class ServerEndPoint
110110
{
111111
internal void SimulateConnectionFailure()
112112
{
113-
var tmp = interactive;
114-
tmp?.SimulateConnectionFailure();
115-
tmp = subscription;
116-
tmp?.SimulateConnectionFailure();
113+
interactive?.SimulateConnectionFailure();
114+
subscription?.SimulateConnectionFailure();
117115
}
118116

119117
internal string ListPending(int maxCount)
120118
{
121119
var sb = new StringBuilder();
122-
var tmp = interactive;
123-
tmp?.ListPending(sb, maxCount);
124-
tmp = subscription;
125-
tmp?.ListPending(sb, maxCount);
120+
interactive?.ListPending(sb, maxCount);
121+
subscription?.ListPending(sb, maxCount);
126122
return sb.ToString();
127123
}
128124
}

0 commit comments

Comments
 (0)