Skip to content

Commit 1afd031

Browse files
committed
fix: don’t capture IOException
1 parent 1b783fa commit 1afd031

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

function-aws-api-proxy-test/src/main/java/io/micronaut/function/aws/proxy/test/AwsApiProxyTestServer.java

+1-7
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,7 @@ ApplicationContext getApplicationContext() {
191191
@Override
192192
public void destroy() {
193193
super.destroy();
194-
try {
195-
this.lambdaHandler.close();
196-
} catch (IOException e) {
197-
if (LOG.isErrorEnabled()) {
198-
LOG.error("could not close Handler", e);
199-
}
200-
}
194+
this.lambdaHandler.close();
201195
}
202196

203197
public void handle(String target, Request baseRequest, HttpServletRequest request, HttpServletResponse response) throws IOException {

0 commit comments

Comments
 (0)