forked from adam/discord-bot-shtik
ca2254 is moronic. maybe if it wasn't filed under "code quality" and instead was filed under "you didn't include a workaround for the weaknesses of other external junk" i'd be kinder to it ;)
This commit is contained in:
parent
0ac28c35fb
commit
af4d68caa1
@ -32,7 +32,7 @@ public class ChannelsController : ControllerBase
|
|||||||
var fromDb = _db.Channels.Find(channel.Id);
|
var fromDb = _db.Channels.Find(channel.Id);
|
||||||
if (fromDb == null)
|
if (fromDb == null)
|
||||||
{
|
{
|
||||||
_logger.LogError($"attempt to update channel {channel.Id}, not found"); //ca2254 is moronic. maybe if it wasn't filed under "code quality" and instead was filed under "you didn't include a workaround for the weaknesses of other external junk" i'd be kinder to it ;)
|
_logger.LogError($"attempt to update channel {channel.Id}, not found");
|
||||||
return NotFound();
|
return NotFound();
|
||||||
}
|
}
|
||||||
//settable values: lewdness filter level, meanness filter level. maybe i could decorate them...
|
//settable values: lewdness filter level, meanness filter level. maybe i could decorate them...
|
||||||
|
@ -3,6 +3,7 @@
|
|||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net7.0</TargetFramework>
|
<TargetFramework>net7.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<NoWarn>$(NoWarn);CA2254</NoWarn>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user