mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 15:37:23 +01:00
Slash command - remove duplicate codepath
This commit is contained in:
parent
630f958bd2
commit
0bafb510af
1 changed files with 2 additions and 8 deletions
|
|
@ -201,15 +201,9 @@ namespace MareSynchronos
|
|||
|
||||
private void OnCommand(string command, string args)
|
||||
{
|
||||
if (string.IsNullOrEmpty(args))
|
||||
{
|
||||
OpenUi();
|
||||
return;
|
||||
}
|
||||
var splitArgs = args?.ToLowerInvariant().Trim().Split();
|
||||
|
||||
var splitArgs = args.ToLowerInvariant().Trim().Split();
|
||||
|
||||
if (splitArgs.Length == 0)
|
||||
if (splitArgs == null || splitArgs.Length == 0)
|
||||
{
|
||||
// Interpret this as toggling the UI
|
||||
OpenUi();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue