From 4cc95309a2a8b11ab122b9dfc280e0266689d0ff Mon Sep 17 00:00:00 2001 From: Syping Date: Sun, 23 Nov 2025 06:22:48 +0100 Subject: [PATCH] enforce code style with Boolean --- Commands.Win32.cs | 4 ++-- Commands.cs | 10 +++++----- Jpeg.cs | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/Commands.Win32.cs b/Commands.Win32.cs index 8336f11..46f2596 100644 --- a/Commands.Win32.cs +++ b/Commands.Win32.cs @@ -53,8 +53,8 @@ internal static partial class Commands { Description = "Path Command" }; commandArgument.CompletionSources.Add(_ => [ - new ("register"), - new ("unregister")]); + new("register"), + new("unregister")]); commandArgument.Validators.Add(result => { String[] commands = ["register", "unregister"]; String command = result.GetValueOrDefault(); diff --git a/Commands.cs b/Commands.cs index 63dd3ff..e071b4b 100644 --- a/Commands.cs +++ b/Commands.cs @@ -6,7 +6,7 @@ namespace RagePhoto.Cli; internal static partial class Commands { internal static Int32 CreateFunction(String format, String? imageFile, String? description, - String? json, String? title, String? outputFile, bool imageAsIs) { + String? json, String? title, String? outputFile, Boolean imageAsIs) { try { using Photo photo = new(); @@ -159,7 +159,7 @@ internal static partial class Commands { } internal static Int32 SetFunction(String inputFile, String? format, String? imageFile, String? description, - String? json, String? title, bool updateJson, String? outputFile, bool imageAsIs) { + String? json, String? title, Boolean updateJson, String? outputFile, Boolean imageAsIs) { try { if (format == null && imageFile == null && description == null && json == null && title == null && !updateJson) { @@ -273,7 +273,7 @@ internal static partial class Commands { Option outputOption = new("--output", "-o") { Description = "Output File" }; - Option imageAsIsOption = new("--image-as-is") { + Option imageAsIsOption = new("--image-as-is") { Description = "Force image being set as-is" }; Command createCommand = new("create", "Create a new Photo") { @@ -362,13 +362,13 @@ internal static partial class Commands { Option titleOption = new("--title", "-t") { Description = "Title" }; - Option updateJsonOption = new("--update-json", "-u") { + Option updateJsonOption = new("--update-json", "-u") { Description = "Update JSON" }; Option outputOption = new("--output", "-o") { Description = "Output File" }; - Option imageAsIsOption = new("--image-as-is") { + Option imageAsIsOption = new("--image-as-is") { Description = "Force image being set as-is" }; Command setCommand = new("set", "Set Data from a Photo") { diff --git a/Jpeg.cs b/Jpeg.cs index b9bb8b6..bac66bd 100644 --- a/Jpeg.cs +++ b/Jpeg.cs @@ -29,7 +29,7 @@ internal class Jpeg { return jpegStream.ToArray(); } - internal static Byte[] GetJpeg(Stream input, bool imageAsIs, out Size size) { + internal static Byte[] GetJpeg(Stream input, Boolean imageAsIs, out Size size) { try { if (imageAsIs) { using MemoryStream jpegStream = new();