From a8357dffb9fb5bfb37ada5f47df9db0583a646b3 Mon Sep 17 00:00:00 2001 From: chixianliangGithub Date: Wed, 2 Sep 2020 15:05:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E4=BB=A3=E7=A0=81=E9=A1=BA?= =?UTF-8?q?=E5=BA=8F=EF=BC=8C=E6=8F=90=E9=AB=98=E4=BB=A3=E7=A0=81=E6=80=A7?= =?UTF-8?q?=E8=83=BD=20(#291)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: chixl --- src/model/endpoint.go | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/model/endpoint.go b/src/model/endpoint.go index cb2f0ef4..e801ed3f 100644 --- a/src/model/endpoint.go +++ b/src/model/endpoint.go @@ -79,15 +79,14 @@ func EndpointImport(endpoints []string) error { arr := strings.Split(endpoints[i], "::") ident := strings.TrimSpace(arr[0]) - alias := "" - if len(arr) == 2 { - alias = strings.TrimSpace(arr[1]) - } - if ident == "" { continue } + alias := "" + if len(arr) == 2 { + alias = strings.TrimSpace(arr[1]) + } err := endpointImport(session, ident, alias) if err != nil { return err