From 2f04804a4860d617173050306d3f5ec72a9c6091 Mon Sep 17 00:00:00 2001 From: Justin Date: Wed, 1 Apr 2015 08:47:52 -0700 Subject: [PATCH] Remove unnecessary key check and return value in SET_VAR_DELIMITER --- Asterisk.2013/Asterisk.NET/Common.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Asterisk.2013/Asterisk.NET/Common.cs b/Asterisk.2013/Asterisk.NET/Common.cs index 91f495d..723f02d 100644 --- a/Asterisk.2013/Asterisk.NET/Common.cs +++ b/Asterisk.2013/Asterisk.NET/Common.cs @@ -41,14 +41,9 @@ namespace AsterNET } /// Variables delimiter setter - public static char[] SET_VAR_DELIMITER(string hostname, char[] delimiter) + public static void SET_VAR_DELIMITER(string hostname, char[] delimiter) { - if (!VAR_DELIMITERS.ContainsKey(hostname)) - { - VAR_DELIMITERS.Add(hostname, new char[] { '|' }); - } - - return VAR_DELIMITERS[hostname] = delimiter; + VAR_DELIMITERS[hostname] = delimiter; } public static IFormatProvider CultureInfoEn = new CultureInfo("en-US", false);