From f29ad29bc449373bc96e49243fab061801e4e233 Mon Sep 17 00:00:00 2001 From: Jordan Dominion Date: Sat, 2 Mar 2024 13:48:47 -0500 Subject: [PATCH] Cleanup an unnecessary `catch` --- .../Components/Deployment/DmbFactory.cs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/Tgstation.Server.Host/Components/Deployment/DmbFactory.cs b/src/Tgstation.Server.Host/Components/Deployment/DmbFactory.cs index 92000a1e53..a4ca0c26ca 100644 --- a/src/Tgstation.Server.Host/Components/Deployment/DmbFactory.cs +++ b/src/Tgstation.Server.Host/Components/Deployment/DmbFactory.cs @@ -399,11 +399,7 @@ namespace Tgstation.Server.Host.Components.Deployment ++deleting; await DeleteCompileJobContent(x, cancellationToken); } - catch (OperationCanceledException) - { - throw; - } - catch (Exception e) + catch (Exception e) when (e is not OperationCanceledException) { logger.LogWarning(e, "Error deleting directory {dirName}!", x); }