Merge pull request #385 from tgstation/Cyberboss-patch-1

Fixes RepoConfig.LoadArray
This commit is contained in:
Jordan Brown
2017-11-17 13:24:55 -05:00
committed by GitHub
+2 -3
View File
@@ -91,10 +91,9 @@ namespace TGS.Server
/// <returns></returns>
private static IList<string> LoadArray(object o)
{
var array = (object[])o;
var res = new List<string>();
foreach (var I in array)
res.Add((string)I);
foreach (var I in ((JArray)o))
res.Add(I.ToObject<string>());
return res;
}