Minor fix for help text, fix two compiler warnings

This commit is contained in:
Caelan Sayler
2021-12-28 17:41:37 +00:00
parent 8ab715cecb
commit dd4d6d6477
3 changed files with 3 additions and 3 deletions

View File

@@ -1180,7 +1180,7 @@ namespace Mono.Options
Category c = p as Category; Category c = p as Category;
if (c != null) { if (c != null) {
WriteDescription (o, p.Description, "", 80, 80); WriteDescription (o, p.Description, "", LineWidth, LineWidth);
continue; continue;
} }

View File

@@ -632,7 +632,7 @@ namespace Squirrel
var runningProcesses = UnsafeUtility.EnumerateProcesses(); var runningProcesses = UnsafeUtility.EnumerateProcesses();
// Finally, clean up the app-X.Y.Z directories // Finally, clean up the app-X.Y.Z directories
await toCleanup.ForEachAsync(async x => { await toCleanup.ForEachAsync(x => {
try { try {
if (runningProcesses.All(p => p.Item1 == null || !p.Item1.StartsWith(x.FullName, StringComparison.OrdinalIgnoreCase))) { if (runningProcesses.All(p => p.Item1 == null || !p.Item1.StartsWith(x.FullName, StringComparison.OrdinalIgnoreCase))) {
Utility.DeleteFileOrDirectoryHardOrGiveUp(x.FullName); Utility.DeleteFileOrDirectoryHardOrGiveUp(x.FullName);

View File

@@ -113,7 +113,7 @@ namespace Squirrel.Tests.Core
var sw = new Stopwatch(); var sw = new Stopwatch();
sw.Start(); sw.Start();
Utility.DeleteDirectory(tempDir).Wait(); Utility.DeleteFileOrDirectoryHard(tempDir);
sw.Stop(); sw.Stop();
this.Log().Info("Delete took {0}ms", sw.ElapsedMilliseconds); this.Log().Info("Delete took {0}ms", sw.ElapsedMilliseconds);