Browse Source

Use expression-bodied method for consistency

pull/581/head
Bond-009 8 years ago
parent
commit
ee1592b9f1
1 changed files with 1 additions and 4 deletions
  1. +1
    -4
      src/Discord.Net.Commands/CommandService.cs

+ 1
- 4
src/Discord.Net.Commands/CommandService.cs View File

@@ -154,10 +154,7 @@ namespace Discord.Commands
_moduleLock.Release();
}
}
public Task<bool> RemoveModuleAsync<T>()
{
return RemoveModuleAsync(typeof(T));
}
public Task<bool> RemoveModuleAsync<T>() => RemoveModuleAsync(typeof(T));
public async Task<bool> RemoveModuleAsync(Type type)
{
await _moduleLock.WaitAsync().ConfigureAwait(false);


Loading…
Cancel
Save