More target-typed new and redundant paranthesis cleanup

This commit is contained in:
Kwoth
2021-12-20 00:33:11 +01:00
parent 345a9e9524
commit 1b2017024c
152 changed files with 573 additions and 580 deletions

View File

@@ -55,7 +55,7 @@ public class PatreonRewardsService : INService
_client = client;
if (client.ShardId == 0)
_updater = new Timer(async _ => await RefreshPledges(_credsProvider.GetCreds()).ConfigureAwait(false),
_updater = new(async _ => await RefreshPledges(_credsProvider.GetCreds()).ConfigureAwait(false),
null, TimeSpan.Zero, Interval);
}
@@ -188,8 +188,8 @@ public class PatreonRewardsService : INService
}
var userData = members.Join(users,
(m) => m.Relationships.User.Data.Id,
(u) => u.Id,
m => m.Relationships.User.Data.Id,
u => u.Id,
(m, u) => new
{
PatreonUserId = m.Relationships.User.Data.Id,
@@ -238,7 +238,7 @@ public class PatreonRewardsService : INService
if (usr is null)
{
users.Add(new RewardedUser()
users.Add(new()
{
PatreonUserId = patreonUserId,
LastReward = now,