From 51bedae9e81a5f7b324e18db7a64f7e90fd442c7 Mon Sep 17 00:00:00 2001 From: Tharsanan1 Date: Tue, 17 Oct 2023 14:21:30 +0530 Subject: [PATCH] Fix format --- common-controller/internal/web/notify_handler.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/common-controller/internal/web/notify_handler.go b/common-controller/internal/web/notify_handler.go index 806c25615a..cc68c2fa91 100644 --- a/common-controller/internal/web/notify_handler.go +++ b/common-controller/internal/web/notify_handler.go @@ -79,16 +79,15 @@ func init() { authKeyHeader = conf.CommonController.Sts.AuthKeyHeader } -// RevokeHandler handles the token revocation requests +// NotifyHandler handles notify requests func NotifyHandler(c *gin.Context) { _type := c.Query("type") if _type == tokenRevocationType { revokeToken(c) return - } else { - c.JSON(http.StatusBadRequest, gin.H{"error": "Invalid type"}) - return - } + } + c.JSON(http.StatusBadRequest, gin.H{"error": "Invalid type"}) + return } func revokeToken(c *gin.Context) {