diff --git a/src/ImageProcessorCore/Common/Helpers/Guard.cs b/src/ImageProcessorCore/Common/Helpers/Guard.cs index 4e8c764f7..4807d17af 100644 --- a/src/ImageProcessorCore/Common/Helpers/Guard.cs +++ b/src/ImageProcessorCore/Common/Helpers/Guard.cs @@ -148,7 +148,7 @@ namespace ImageProcessorCore /// The maximum value. /// The name of the parameter that is to be checked. /// The type of the value. - /// + /// /// is less than the minimum value of greater than the maximum value. /// public static void MustBeBetweenOrEqualTo(TValue value, TValue min, TValue max, string parameterName) @@ -173,14 +173,14 @@ namespace ImageProcessorCore /// /// The error message, if any to add to the exception. /// - /// + /// /// is null /// public static void IsTrue(bool target, string parameterName, string message = "") { if (!target) { - if (string.IsNullOrWhiteSpace(message)) + if (!string.IsNullOrWhiteSpace(message)) { throw new ArgumentException(parameterName, message); } @@ -203,7 +203,7 @@ namespace ImageProcessorCore { if (target) { - if (string.IsNullOrWhiteSpace(message)) + if (!string.IsNullOrWhiteSpace(message)) { throw new ArgumentException(parameterName, message); }