From af4d68caa155be7fb8202c8c7ae08da89a7d1fcb Mon Sep 17 00:00:00 2001 From: Adam R Grey Date: Sun, 23 Jun 2024 20:35:00 -0400 Subject: [PATCH] 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 ;) --- WebInterface/Controllers/api/ChannelsControler.cs | 2 +- vassago.csproj | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/WebInterface/Controllers/api/ChannelsControler.cs b/WebInterface/Controllers/api/ChannelsControler.cs index 4bdb097..fb3dfd6 100644 --- a/WebInterface/Controllers/api/ChannelsControler.cs +++ b/WebInterface/Controllers/api/ChannelsControler.cs @@ -32,7 +32,7 @@ public class ChannelsController : ControllerBase var fromDb = _db.Channels.Find(channel.Id); 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(); } //settable values: lewdness filter level, meanness filter level. maybe i could decorate them... diff --git a/vassago.csproj b/vassago.csproj index f4baece..f9392a8 100644 --- a/vassago.csproj +++ b/vassago.csproj @@ -3,6 +3,7 @@ net7.0 enable + $(NoWarn);CA2254