From e4925cbc0c3cd07555c1969e29bf87e2b7ae13c8 Mon Sep 17 00:00:00 2001 From: Ashera Silva Date: Tue, 25 Jul 2023 10:06:09 +0530 Subject: [PATCH] Address review comments --- .../jwtgenerator/AbstractAPIMgtGatewayJWTGenerator.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/apimgt/org.wso2.carbon.apimgt.common.gateway/src/main/java/org/wso2/carbon/apimgt/common/gateway/jwtgenerator/AbstractAPIMgtGatewayJWTGenerator.java b/components/apimgt/org.wso2.carbon.apimgt.common.gateway/src/main/java/org/wso2/carbon/apimgt/common/gateway/jwtgenerator/AbstractAPIMgtGatewayJWTGenerator.java index 743548c826fc..34c385f955ef 100644 --- a/components/apimgt/org.wso2.carbon.apimgt.common.gateway/src/main/java/org/wso2/carbon/apimgt/common/gateway/jwtgenerator/AbstractAPIMgtGatewayJWTGenerator.java +++ b/components/apimgt/org.wso2.carbon.apimgt.common.gateway/src/main/java/org/wso2/carbon/apimgt/common/gateway/jwtgenerator/AbstractAPIMgtGatewayJWTGenerator.java @@ -123,7 +123,8 @@ public String buildHeader() throws JWTGeneratorException { } } catch (JSONException e) { throw new JWTGeneratorException("Encountered an error while generating JWT header json object", e); - } return jwtHeader; + } + return jwtHeader; } public byte[] signJWT(String assertion) throws JWTGeneratorException {