From 31a0c6ffb2355b80a8d86ff11674660715761ff2 Mon Sep 17 00:00:00 2001 From: glax Date: Wed, 4 Oct 2023 18:14:46 +0200 Subject: [PATCH] Fix build warnings --- Logging/MemoryLogger.cs | 2 +- Tranga/MangaConnectors/MangaConnector.cs | 2 +- Tranga/Server.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Logging/MemoryLogger.cs b/Logging/MemoryLogger.cs index a612587..019600f 100644 --- a/Logging/MemoryLogger.cs +++ b/Logging/MemoryLogger.cs @@ -62,7 +62,7 @@ public class MemoryLogger : LoggerBase 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; } diff --git a/Tranga/MangaConnectors/MangaConnector.cs b/Tranga/MangaConnectors/MangaConnector.cs index 834c74f..a6bcef0 100644 --- a/Tranga/MangaConnectors/MangaConnector.cs +++ b/Tranga/MangaConnectors/MangaConnector.cs @@ -225,7 +225,7 @@ public abstract class MangaConnector : GlobalBase } if (progressToken?.cancellationRequested ?? false) { - progressToken?.Complete(); + progressToken.Complete(); return HttpStatusCode.RequestTimeout; } progressToken?.Increment(); diff --git a/Tranga/Server.cs b/Tranga/Server.cs index bd9625e..7ba6122 100644 --- a/Tranga/Server.cs +++ b/Tranga/Server.cs @@ -52,7 +52,7 @@ public class Server : GlobalBase }); t.Start(); } - catch (HttpListenerException e) + catch (HttpListenerException) { }