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

@@ -26,7 +26,7 @@ public static class GuildConfigExtensions
.Include(y => y.StreamRole.Blacklist));
if (conf.StreamRole is null)
conf.StreamRole = new StreamRoleSettings();
conf.StreamRole = new();
return conf.StreamRole;
}
@@ -91,7 +91,7 @@ public static class GuildConfigExtensions
if (config is null)
{
ctx.GuildConfigs.Add((config = new GuildConfig
ctx.GuildConfigs.Add((config = new()
{
GuildId = guildId,
Permissions = Permissionv2.GetDefaultPermlist,
@@ -150,7 +150,7 @@ public static class GuildConfigExtensions
if (config is null) // if there is no guildconfig, create new one
{
ctx.GuildConfigs.Add((config = new GuildConfig
ctx.GuildConfigs.Add((config = new()
{
GuildId = guildId,
Permissions = Permissionv2.GetDefaultPermlist

View File

@@ -13,7 +13,7 @@ public static class UserXpExtensions
if (usr is null)
{
ctx.Add(usr = new UserXpStats()
ctx.Add(usr = new()
{
Xp = 0,
UserId = userId,