From 2a30c1c5c0e9fd5367bed758a8fdd0f3eb4bc8be Mon Sep 17 00:00:00 2001 From: zhangguanzhang Date: Fri, 26 Jun 2020 18:13:22 +0800 Subject: [PATCH] Remove useless code --- src/backend/models/user.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/backend/models/user.go b/src/backend/models/user.go index 936e3fbe9..0ed57e7fc 100644 --- a/src/backend/models/user.go +++ b/src/backend/models/user.go @@ -96,9 +96,6 @@ func addDefaultNamespace(user *User) (err error) { // 添加默认命名空间开发者权限 demoNSId := beego.AppConfig.DefaultInt64("DemoNamespaceId", 1) demoGroupId := beego.AppConfig.DefaultInt64("DemoGroupId", 1) - if err != nil { - return - } if (demoNSId <= 0) || (demoGroupId <= 0) { // 如果DemoNamespaceId小于等于0,则忽略 return nil