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

@@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace OpenMetaverse.TestClient.Commands
@@ -22,9 +23,7 @@ namespace OpenMetaverse.TestClient.Commands
if (args.Length < 1)
return "Usage: searchevents [search text]";
string searchText = string.Empty;
for (int i = 0; i < args.Length; i++)
searchText += args[i] + " ";
string searchText = args.Aggregate(string.Empty, (current, t) => current + (t + " "));
searchText = searchText.TrimEnd();
waitQuery.Reset();