From d40e61fc454a9c42d2ac69950074bf3504d484bf Mon Sep 17 00:00:00 2001 From: MHSanaei Date: Wed, 14 Jun 2023 19:50:19 +0330 Subject: fix and improve --- web/controller/inbound.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'web/controller') diff --git a/web/controller/inbound.go b/web/controller/inbound.go index 461c4b27..a9699bbb 100644 --- a/web/controller/inbound.go +++ b/web/controller/inbound.go @@ -145,12 +145,7 @@ func (a *InboundController) getClientIps(c *gin.Context) { email := c.Param("email") ips, err := a.inboundService.GetInboundClientIps(email) - if err != nil { - jsonObj(c, "Failed to get client IPs", nil) - return - } - - if ips == "" { + if err != nil || ips == "" { jsonObj(c, "No IP Record", nil) return } -- cgit v1.2.3