mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-02-16 21:24:58 +00:00
IcdConsole does not call string.Format if there are no args
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System;
|
using System;
|
||||||
|
using System.Linq;
|
||||||
using ICD.Common.Properties;
|
using ICD.Common.Properties;
|
||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
using Crestron.SimplSharp;
|
using Crestron.SimplSharp;
|
||||||
@@ -34,7 +35,8 @@ namespace ICD.Common.Utils
|
|||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
public static void ConsoleCommandResponse(string message, params object[] args)
|
public static void ConsoleCommandResponse(string message, params object[] args)
|
||||||
{
|
{
|
||||||
message = string.Format(message, args);
|
if(args != null && args.Any())
|
||||||
|
message = string.Format(message, args);
|
||||||
|
|
||||||
#if SIMPLSHARP
|
#if SIMPLSHARP
|
||||||
try
|
try
|
||||||
|
|||||||
Reference in New Issue
Block a user