Skip to content

Commit

Permalink
Merge pull request #121 from dotnet-campus/t/bot/fix-codeformatting
Browse files Browse the repository at this point in the history
[Bot] Automated PR to fix formatting errors
  • Loading branch information
lindexi authored Apr 16, 2024
2 parents f5136ee + 6af6330 commit f10173c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion DebUOS/Packaging.DebUOS.Tool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
if (!string.IsNullOrEmpty(options.BuildPath))
{
var packingFolder = new DirectoryInfo(options.BuildPath);
var outputPath = options.OutputPath ?? Path.Join(packingFolder.FullName,$"{packingFolder.Name}.deb");
var outputPath = options.OutputPath ?? Path.Join(packingFolder.FullName, $"{packingFolder.Name}.deb");
var outputDebFile = new FileInfo(outputPath);

var debUosPackageCreator = new DebUOSPackageCreator(logger);
Expand Down
2 changes: 1 addition & 1 deletion DebUOS/Packaging.DebUOS/DebUOSPackageCreator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private static void WriteControlEntry(Stream tar, string name, string data = nul
{
FileMode = mode,
FileName = name,
FileSize = (uint) s.Length,
FileSize = (uint)s.Length,
GroupName = "root",
UserName = "root",
LastModified = DateTimeOffset.UtcNow,
Expand Down
4 changes: 2 additions & 2 deletions DebUOS/Packaging.Targets/ArchiveBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,11 @@ protected void AddFile(string entry, string relativePath, string prefix, List<Ar
//using (var hasher = IncrementalHash.CreateHash(HashAlgorithmName.SHA256))
//using (var md5hasher = IncrementalHash.CreateHash(HashAlgorithmName.MD5))
//{
int read;
int read;

// while (true)
// {
read = fileStream.Read(buffer, 0, buffer.Length);
read = fileStream.Read(buffer, 0, buffer.Length);

if (fileHeader == null)
{
Expand Down
2 changes: 1 addition & 1 deletion SyncTool/Server/ServeOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public static int GetAvailablePort(IPAddress ip)
using var socket = new Socket(SocketType.Stream, ProtocolType.Tcp);
socket.Bind(new IPEndPoint(ip, 0));
socket.Listen(1);
var ipEndPoint = (IPEndPoint) socket.LocalEndPoint!;
var ipEndPoint = (IPEndPoint)socket.LocalEndPoint!;
var port = ipEndPoint.Port;
return port;
}
Expand Down

0 comments on commit f10173c

Please sign in to comment.