Fix build warnings

This commit is contained in:
glax 2023-10-04 18:14:46 +02:00
parent 668a3b3a96
commit 31a0c6ffb2
3 changed files with 3 additions and 3 deletions

View File

@ -62,7 +62,7 @@ public class MemoryLogger : LoggerBase
ret.Add(_logMessages.GetValueAtIndex(_lastLogMessageIndex + retIndex).ToString()); ret.Add(_logMessages.GetValueAtIndex(_lastLogMessageIndex + retIndex).ToString());
} }
} }
catch (NullReferenceException e)//Called when LogMessage has not finished writing catch (NullReferenceException)//Called when LogMessage has not finished writing
{ {
break; break;
} }

View File

@ -225,7 +225,7 @@ public abstract class MangaConnector : GlobalBase
} }
if (progressToken?.cancellationRequested ?? false) if (progressToken?.cancellationRequested ?? false)
{ {
progressToken?.Complete(); progressToken.Complete();
return HttpStatusCode.RequestTimeout; return HttpStatusCode.RequestTimeout;
} }
progressToken?.Increment(); progressToken?.Increment();

View File

@ -52,7 +52,7 @@ public class Server : GlobalBase
}); });
t.Start(); t.Start();
} }
catch (HttpListenerException e) catch (HttpListenerException)
{ {
} }