From a6d6c56aa81624433529fb53dbf067680ab49266 Mon Sep 17 00:00:00 2001 From: Christopher F Date: Wed, 20 Jul 2016 18:28:37 -0400 Subject: [PATCH] Remove unused exception handler Resolves a CS0168 --- src/Discord.Net.Commands/ReflectionUtils.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Discord.Net.Commands/ReflectionUtils.cs b/src/Discord.Net.Commands/ReflectionUtils.cs index d1eeccb4c..8562092f4 100644 --- a/src/Discord.Net.Commands/ReflectionUtils.cs +++ b/src/Discord.Net.Commands/ReflectionUtils.cs @@ -30,7 +30,7 @@ namespace Discord.Commands else throw new InvalidOperationException($"Could not find a valid constructor for \"{typeInfo.FullName}\" (Invalid Parameter Type: \"{parameter.ParameterType.FullName}\")"); } - catch (Exception e) + catch { throw new InvalidOperationException($"Could not find a valid constructor for \"{typeInfo.FullName}\" (Error invoking constructor)"); }