Use the new Csharp 8 features (pattern matching and using assignments) and cleanup some insignificant resparper complaints
This commit is contained in:
parent
21f813d342
commit
3568b61f38
27 changed files with 217 additions and 250 deletions
|
@ -63,8 +63,11 @@ namespace Geekbot.net.Lib.ReactionListener
|
|||
_listener[messageId].Add(emoji, role.Id);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
var dict = new Dictionary<IEmote, ulong>();
|
||||
dict.Add(emoji, role.Id);
|
||||
|
||||
var dict = new Dictionary<IEmote, ulong>
|
||||
{
|
||||
{emoji, role.Id}
|
||||
};
|
||||
_listener.Add(messageId, dict);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue