Skip to content

Commit fb0a2fd

Browse files
authored
Merge pull request #135 from dotnet-campus/t/bot/fix-codeformatting
[Bot] Automated PR to fix formatting errors
2 parents 4d8d5bf + f0fc8d3 commit fb0a2fd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

SyncTool/Client/SyncOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ async Task RemoveRedundantFolder(List<SyncFolderPathInfo> syncFolderPathInfoList
279279
return;
280280
}
281281

282-
if (Directory.EnumerateFiles(folder,"*",SearchOption.AllDirectories).Any())
282+
if (Directory.EnumerateFiles(folder, "*", SearchOption.AllDirectories).Any())
283283
{
284284
// 如果存在文件,则不是空文件夹,不能删除
285285
continue;

SyncTool/Server/ServeOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ public static int GetAvailablePort(IPAddress ip)
209209
using var socket = new Socket(SocketType.Stream, ProtocolType.Tcp);
210210
socket.Bind(new IPEndPoint(ip, 0));
211211
socket.Listen(1);
212-
var ipEndPoint = (IPEndPoint) socket.LocalEndPoint!;
212+
var ipEndPoint = (IPEndPoint)socket.LocalEndPoint!;
213213
var port = ipEndPoint.Port;
214214
return port;
215215
}

0 commit comments

Comments
 (0)