IcdConsole does not call string.Format if there are no args

This commit is contained in:
jeffery.thompson
2017-07-21 12:08:37 -04:00
parent 91534ec0af
commit f1fe9420f2

View File

@@ -1,4 +1,5 @@
using System;
using System.Linq;
using ICD.Common.Properties;
#if SIMPLSHARP
using Crestron.SimplSharp;
@@ -34,7 +35,8 @@ namespace ICD.Common.Utils
[PublicAPI]
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
try