Skip to content

Commit

Permalink
Merge pull request #574 from zhangguanzhang/master
Browse files Browse the repository at this point in the history
Remove useless code
  • Loading branch information
70data committed Jun 29, 2020
2 parents 620d4a0 + 2a30c1c commit 98197fc
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/backend/models/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 98197fc

Please sign in to comment.