diff --git a/SabreTools.Library/Logger.cs b/SabreTools.Library/Logger.cs index 0feacedc..c328dfa2 100644 --- a/SabreTools.Library/Logger.cs +++ b/SabreTools.Library/Logger.cs @@ -247,7 +247,7 @@ namespace SabreTools.Library /// True if the output could be written, false otherwises public bool Verbose(string output, params object[] args) { - return Log(args == null ? output: string.Format(output, args), LogLevel.VERBOSE, true); + return Log(args.Length == 0 ? output: string.Format(output, args), LogLevel.VERBOSE, true); } /// @@ -259,7 +259,7 @@ namespace SabreTools.Library /// True if the output could be written, false otherwise public bool Verbose(string output, bool appendPrefix = true, params object[] args) { - return Log(args == null ? output : string.Format(output, args), LogLevel.VERBOSE, appendPrefix); + return Log(args.Length == 0 ? output : string.Format(output, args), LogLevel.VERBOSE, appendPrefix); } /// @@ -270,7 +270,7 @@ namespace SabreTools.Library /// True if the output could be written, false otherwise public bool User(string output, params object[] args) { - return Log(args == null ? output : string.Format(output, args), LogLevel.USER, true); + return Log(args.Length == 0 ? output : string.Format(output, args), LogLevel.USER, true); } /// @@ -282,7 +282,7 @@ namespace SabreTools.Library /// True if the output could be written, false otherwise public bool User(string output, bool appendPrefix = true, params object[] args) { - return Log(args == null ? output : string.Format(output, args), LogLevel.USER, appendPrefix); + return Log(args.Length == 0 ? output : string.Format(output, args), LogLevel.USER, appendPrefix); } /// @@ -294,7 +294,7 @@ namespace SabreTools.Library public bool Warning(string output, params object[] args) { _warnings = true; - return Log(args == null ? output : string.Format(output, args), LogLevel.WARNING, true); + return Log(args.Length == 0 ? output : string.Format(output, args), LogLevel.WARNING, true); } /// @@ -307,7 +307,7 @@ namespace SabreTools.Library public bool Warning(string output, bool appendPrefix = true, params object[] args) { _warnings = true; - return Log(args == null ? output : string.Format(output, args), LogLevel.WARNING, appendPrefix); + return Log(args.Length == 0 ? output : string.Format(output, args), LogLevel.WARNING, appendPrefix); } /// @@ -319,7 +319,7 @@ namespace SabreTools.Library public bool Error(string output, params object[] args) { _errors = true; - return Log(args == null ? output : string.Format(output, args), LogLevel.ERROR, true); + return Log(args.Length == 0 ? output : string.Format(output, args), LogLevel.ERROR, true); } /// @@ -332,7 +332,7 @@ namespace SabreTools.Library public bool Error(string output, bool appendPrefix = true, params object[] args) { _errors = true; - return Log(args == null ? output : string.Format(output, args), LogLevel.ERROR, appendPrefix); + return Log(args.Length == 0 ? output : string.Format(output, args), LogLevel.ERROR, appendPrefix); } ///