From 6f03971b6cef7c87238ad658ceeaf3fce1df2402 Mon Sep 17 00:00:00 2001 From: zhiqiang feng Date: Thu, 17 Sep 2020 10:02:56 +0800 Subject: [PATCH] fix lint --- internal/codec.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/codec.go b/internal/codec.go index 9c6be76..b29071a 100644 --- a/internal/codec.go +++ b/internal/codec.go @@ -108,6 +108,7 @@ func CreateReceive(user string, pass string, count int) string { return msg } +//Map get values func Map(vs []string, f func(string) string) []string { vsm := make([]string, len(vs)) for i, v := range vs { @@ -140,8 +141,7 @@ func GetErrMsg(soap string) string { func split(msg string) string { if len(msg) > 12 { return msg[12 : len(msg)-13] - } else { - return msg } + return msg }