Remove unnecessary key check and return value in SET_VAR_DELIMITER
This commit is contained in:
parent
58ab6be525
commit
2f04804a48
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue