Some cleanup with foreach

This commit is contained in:
Cinder
2021-07-25 11:10:52 -05:00
parent 8fefc903b3
commit d19333058d
42 changed files with 186 additions and 224 deletions

View File

@@ -24,9 +24,9 @@ namespace OpenMetaverse.TestClient
catch (Exception e) { return e.Message; }
// Execute all of the commands
for (int i = 0; i < lines.Length; i++)
foreach (var l in lines)
{
string line = lines[i].Trim();
string line = l.Trim();
if (line.Length > 0)
ClientManager.Instance.DoCommandAll(line, UUID.Zero);