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;
if (c != null) {
WriteDescription (o, p.Description, "", 80, 80);
WriteDescription (o, p.Description, "", LineWidth, LineWidth);
continue;
}

View File

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

View File

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