Optimize Linq
Co-authored-by: Arthri <41360489+Arthri@users.noreply.github.com>
This commit is contained in:
parent
3d11d84d73
commit
51ecef73a1
1 changed files with 2 additions and 2 deletions
|
|
@ -530,8 +530,8 @@ namespace TShockAPI
|
||||||
var desc = descattr != null && !string.IsNullOrWhiteSpace(descattr.Description) ? descattr.Description : GetString("No description available.");
|
var desc = descattr != null && !string.IsNullOrWhiteSpace(descattr.Description) ? descattr.Description : GetString("No description available.");
|
||||||
|
|
||||||
var strs = GetCommands(name).Select(c => c.Names.Count > 1
|
var strs = GetCommands(name).Select(c => c.Names.Count > 1
|
||||||
? $"{c.Name} ({string.Join(" ", c.Names.Skip(1).Select(n => $"/{n}"))})"
|
? $"/{c.Name} (/{string.Join(" /", c.Names.Skip(1))})"
|
||||||
: c.Name);
|
: $"/{c.Name}");
|
||||||
|
|
||||||
sb.AppendLine($"## {name}");
|
sb.AppendLine($"## {name}");
|
||||||
sb.AppendLine($"{desc}");
|
sb.AppendLine($"{desc}");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue