Skip to content

Commit 96e0512

Browse files
committed
fomat
1 parent 4f9733c commit 96e0512

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

logic/ClientTest2/Program.cs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -437,8 +437,10 @@ private static (int[,] dist, int[,] prevR, int[,] prevC) Bfs(
437437
{
438438
var path = new List<(int, int)>(); var cur = end;
439439
while (!(cur.r == sr && cur.c == sc))
440-
{ path.Add(cur); int pr = prevR[cur.r, cur.c], pc = prevC[cur.r, cur.c];
441-
if (pr < 0) return []; cur = (pr, pc); }
440+
{
441+
path.Add(cur); int pr = prevR[cur.r, cur.c], pc = prevC[cur.r, cur.c];
442+
if (pr < 0) return []; cur = (pr, pc);
443+
}
442444
path.Add((sr, sc)); path.Reverse(); return path;
443445
}
444446

@@ -450,7 +452,8 @@ private static async Task ReadStreamAsync(
450452
long teamId, CancellationToken ct)
451453
{
452454
try { while (await call.ResponseStream.MoveNext(ct)) state.ApplyFrame(call.ResponseStream.Current, teamId); }
453-
catch (RpcException) { } catch (OperationCanceledException) { }
455+
catch (RpcException) { }
456+
catch (OperationCanceledException) { }
454457
}
455458

456459
private static async Task<bool> Timeout(Task task, int sec, CancellationToken ct)

0 commit comments

Comments
 (0)