diff options
| author | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-06-14 19:20:19 +0300 |
|---|---|---|
| committer | MHSanaei <ho3ein.sanaei@gmail.com> | 2023-06-14 19:20:19 +0300 |
| commit | d40e61fc454a9c42d2ac69950074bf3504d484bf (patch) | |
| tree | fdbc6f122ad99a078698c82205520c15167b8242 /web/controller | |
| parent | c0f1a926e588303051a6a3e977ed2948e6dfd764 (diff) | |
fix and improve
Diffstat (limited to 'web/controller')
| -rw-r--r-- | web/controller/inbound.go | 7 |
1 files changed, 1 insertions, 6 deletions
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 } |
