Skip to content

Commit

Permalink
Use Exceptions.throwUnsafely(e)
Browse files Browse the repository at this point in the history
  • Loading branch information
KonaEspresso94 committed Jul 21, 2024
1 parent dff6e08 commit ce4fe89
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
import com.linecorp.armeria.common.MediaType;
import com.linecorp.armeria.common.QueryParams;
import com.linecorp.armeria.common.annotation.Nullable;
import com.linecorp.armeria.common.util.Exceptions;

/**
* A Nacos client that is responsible for
Expand Down Expand Up @@ -128,7 +129,7 @@ public HttpResponse execute(ClientRequestContext ctx, HttpRequest req) {
ctx.updateRequest(newReq);
return delegate.execute(ctx, newReq);
} catch (Exception e) {
throw new RuntimeException(e);
return Exceptions.throwUnsafely(e);
}
});

Expand Down

0 comments on commit ce4fe89

Please sign in to comment.