remove warning by not naming exception that's not used

Signed-off-by: Michael Friis <friism@gmail.com>
This commit is contained in:
Michael Friis 2019-02-26 16:59:42 -08:00
parent 7d772add1b
commit 2bf1c10d85
1 changed files with 2 additions and 2 deletions

View File

@ -116,7 +116,7 @@ namespace CloudNative.CloudEvents
var response = await client.GetAsync(new Uri(uri));
return new HttpResponseMessage(response.StatusCode);
}
catch (Exception e)
catch (Exception)
{
return new HttpResponseMessage(HttpStatusCode.InternalServerError);
}
@ -175,7 +175,7 @@ namespace CloudNative.CloudEvents
context.Response.Close();
return;
}
catch (Exception e)
catch (Exception)
{
context.Response.StatusCode = (int)HttpStatusCode.InternalServerError;
context.Response.Close();