mirror of
https://github.com/ICDSystems/ICD.Common.Utils.git
synced 2026-04-12 03:57:32 +00:00
IcdConsole does not call string.Format if there are no args
This commit is contained in:
parent
91534ec0af
commit
f1fe9420f2
1 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue