From 74f7af68124b153de02beff38d30074dfe83d439 Mon Sep 17 00:00:00 2001 From: proshir Date: Wed, 2 Nov 2022 13:14:24 +0330 Subject: [PATCH] fix funny bug in line 49 check_clinet_ip_job --- web/job/check_clinet_ip_job.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/web/job/check_clinet_ip_job.go b/web/job/check_clinet_ip_job.go index 9dfde67c..29e13a87 100644 --- a/web/job/check_clinet_ip_job.go +++ b/web/job/check_clinet_ip_job.go @@ -46,9 +46,7 @@ func processLogFile() { checkError(err) } - lines := ss.Split(string(data), "\n") if err != nil { - return nil - } + lines := ss.Split(string(data), "\n") for _, line := range lines { ipRegx, _ := regexp.Compile(`[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+`) emailRegx, _ := regexp.Compile(`email:.+`)