Skip to content
This repository was archived by the owner on Oct 29, 2025. It is now read-only.

Commit bef2741

Browse files
committed
Corrections
1 parent 760f80f commit bef2741

File tree

4 files changed

+11
-7377
lines changed

4 files changed

+11
-7377
lines changed

TidyBackups/Debugging/Output.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ internal class Output
2626
internal static void Info(string[] args, bool compress, int days, string path, int preserve, bool safe)
2727
{
2828
Message.Print(Assembly.Title + " - " + Assembly.Version);
29-
Message.Print("Admin: " + (object)(bool)(Admin.IsAdmin ? 1 : 0));
29+
Message.Print("Admin: " + Admin.IsAdmin);
3030
Message.Print("OS Version: " + Os.Version);
3131
Message.Print("Disc letter: " + Disc.GetDriveName(path));
3232
Message.Print("Disc label: " + Disc.Label(path));
3333
Message.Print("Disc format: " + Disc.Format(path));
34-
Message.Print("Local disc: " + (object)(bool)(Disc.IsLocalDrive(Disc.GetDriveName(path)) ? 1 : 0));
34+
Message.Print("Local disc: " + Disc.IsLocalDrive(Disc.GetDriveName(path)));
3535
Message.Print("Disc type: " + Disc.Type(path));
3636
Message.Print("Disc ready: " + Disc.Ready(path));
3737
Message.Print("Disc size: " + Disc.TotalSpace(path));
@@ -44,12 +44,12 @@ internal static void Info(string[] args, bool compress, int days, string path, i
4444
Files.Filtered(path);
4545
Message.Print("Path permission: " + Permissions.View(path));
4646
Message.Print("Preserve: " + (object)preserve);
47-
Message.Print("Safe: " + (object)(bool)(safe ? 1 : 0));
48-
Message.Print("Archive: " + (object)(bool)(compress ? 1 : 0));
47+
Message.Print("Safe: " + safe);
48+
Message.Print("Archive: " + compress);
4949
bool flag = true;
5050
if (Message.Logfile == "")
5151
flag = false;
52-
Message.Print("Log: " + (object)(bool)(flag ? 1 : 0));
52+
Message.Print("Log: " + flag);
5353
if (!flag)
5454
return;
5555
Message.Print("Log path: " + Message.Logfile);

TidyBackups/TidyBackups.csproj

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
<ErrorReport>prompt</ErrorReport>
2222
<WarningLevel>4</WarningLevel>
2323
<PlatformTarget>x86</PlatformTarget>
24-
<DocumentationFile>tidybackups.xml</DocumentationFile>
24+
<DocumentationFile>
25+
</DocumentationFile>
2526
<NoStdLib>false</NoStdLib>
2627
</PropertyGroup>
2728
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
@@ -38,8 +39,9 @@
3839
<PropertyGroup />
3940
<PropertyGroup />
4041
<PropertyGroup>
41-
<StartupObject>TidyBackups.UserInferface</StartupObject>
42+
<StartupObject>TidyBackups.UserInterface</StartupObject>
4243
</PropertyGroup>
44+
<PropertyGroup />
4345
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
4446
<ItemGroup>
4547
<Compile Include="Days.cs" />
@@ -55,7 +57,7 @@
5557
<Compile Include="ToInt.cs" />
5658
<Compile Include="Validation.cs" />
5759
<Compile Include="Work.cs" />
58-
<Compile Include="UserInferface.cs" />
60+
<Compile Include="UserInterface.cs" />
5961
<Compile Include="Compress.cs" />
6062
<Compile Include="Exit.cs" />
6163
<Compile Include="Message.cs" />
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ namespace TidyBackups
2323
/// <summary>
2424
/// Main entry class for application.
2525
/// </summary>
26-
internal class UserInferface
26+
internal class UserInterface
2727
{
2828
/// <summary>
2929
/// Main entry for application.

0 commit comments

Comments
 (0)