Remove unnecessary key check and return value in SET_VAR_DELIMITER

This commit is contained in:
Justin 2015-04-01 08:47:52 -07:00
parent 58ab6be525
commit 2f04804a48

View file

@ -41,14 +41,9 @@ namespace AsterNET
} }
/// <summary> Variables delimiter setter </summary> /// <summary> Variables delimiter setter </summary>
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[hostname] = delimiter;
{
VAR_DELIMITERS.Add(hostname, new char[] { '|' });
}
return VAR_DELIMITERS[hostname] = delimiter;
} }
public static IFormatProvider CultureInfoEn = new CultureInfo("en-US", false); public static IFormatProvider CultureInfoEn = new CultureInfo("en-US", false);