diff --git a/src/Nadeko.Medusa/Nadeko.Medusa.csproj b/src/Nadeko.Medusa/Nadeko.Medusa.csproj index 9489c1dc0..f1a6dd351 100644 --- a/src/Nadeko.Medusa/Nadeko.Medusa.csproj +++ b/src/Nadeko.Medusa/Nadeko.Medusa.csproj @@ -13,8 +13,8 @@ - - + + diff --git a/src/NadekoBot.Coordinator/NadekoBot.Coordinator.csproj b/src/NadekoBot.Coordinator/NadekoBot.Coordinator.csproj index 4497829e5..bbd01309d 100644 --- a/src/NadekoBot.Coordinator/NadekoBot.Coordinator.csproj +++ b/src/NadekoBot.Coordinator/NadekoBot.Coordinator.csproj @@ -9,10 +9,10 @@ - - + + - + diff --git a/src/NadekoBot.Tests/NadekoBot.Tests.csproj b/src/NadekoBot.Tests/NadekoBot.Tests.csproj index bd32aa804..accef680b 100644 --- a/src/NadekoBot.Tests/NadekoBot.Tests.csproj +++ b/src/NadekoBot.Tests/NadekoBot.Tests.csproj @@ -8,9 +8,9 @@ - + - + diff --git a/src/NadekoBot.VotesApi/NadekoBot.VotesApi.csproj b/src/NadekoBot.VotesApi/NadekoBot.VotesApi.csproj index 2ceaa9633..1ce2cc51f 100644 --- a/src/NadekoBot.VotesApi/NadekoBot.VotesApi.csproj +++ b/src/NadekoBot.VotesApi/NadekoBot.VotesApi.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/NadekoBot/Modules/Xp/XpService.cs b/src/NadekoBot/Modules/Xp/XpService.cs index a175b541a..d5b6ae770 100644 --- a/src/NadekoBot/Modules/Xp/XpService.cs +++ b/src/NadekoBot/Modules/Xp/XpService.cs @@ -502,7 +502,10 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand var value = DateTimeOffset.UtcNow.ToUnixTimeSeconds(); _cache.Redis.GetDatabase() - .StringSet(key, value, TimeSpan.FromMinutes(_xpConfig.Data.VoiceMaxMinutes), When.NotExists); + .StringSet(key, + value, + TimeSpan.FromMinutes(_xpConfig.Data.VoiceMaxMinutes), + when: When.NotExists); } private void UserLeftVoiceChannel(SocketGuildUser user, SocketVoiceChannel channel) @@ -632,7 +635,10 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand var r = _cache.Redis.GetDatabase(); var key = $"{_creds.RedisKey()}_user_xp_gain_{userId}"; - return r.StringSet(key, true, TimeSpan.FromMinutes(_xpConfig.Data.MessageXpCooldown), When.NotExists); + return r.StringSet(key, + true, + TimeSpan.FromMinutes(_xpConfig.Data.MessageXpCooldown), + when: When.NotExists); } public async Task GetUserStatsAsync(IGuildUser user) diff --git a/src/NadekoBot/NadekoBot.csproj b/src/NadekoBot/NadekoBot.csproj index 188a33954..329cfb523 100644 --- a/src/NadekoBot/NadekoBot.csproj +++ b/src/NadekoBot/NadekoBot.csproj @@ -23,18 +23,18 @@ all True - + - - + + - + - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive @@ -56,7 +56,7 @@ - + @@ -64,18 +64,18 @@ True - + - - + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/src/NadekoBot/Services/Impl/RedisCache.cs b/src/NadekoBot/Services/Impl/RedisCache.cs index 10aa9f847..b857c668f 100644 --- a/src/NadekoBot/Services/Impl/RedisCache.cs +++ b/src/NadekoBot/Services/Impl/RedisCache.cs @@ -147,8 +147,10 @@ public class RedisCache : IDataCache if (db.StringSet($"{_redisKey}_ratelimit_{id}_{name}", 0, // i don't use the value TimeSpan.FromSeconds(expireIn), - When.NotExists)) + when: When.NotExists)) + { return null; + } return db.KeyTimeToLive($"{_redisKey}_ratelimit_{id}_{name}"); } diff --git a/src/ayu/Ayu.Discord.Voice/Ayu.Discord.Voice.csproj b/src/ayu/Ayu.Discord.Voice/Ayu.Discord.Voice.csproj index 0a5b43bf2..e10fcc782 100644 --- a/src/ayu/Ayu.Discord.Voice/Ayu.Discord.Voice.csproj +++ b/src/ayu/Ayu.Discord.Voice/Ayu.Discord.Voice.csproj @@ -8,7 +8,7 @@ - + \ No newline at end of file