Skip to content

Commit

Permalink
🎨 改进代码样式
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed May 16, 2022
1 parent 557251a commit bb6b2e4
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions plugin/qqwife/qqmapwife.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ func 新登记处() (db 婚姻登记) {
return
}


func (db *婚姻登记) 重置() {
db.Lock()
defer db.Unlock()
Expand All @@ -46,21 +45,18 @@ func (db *婚姻登记) 重置() {
}
}


func (db *婚姻登记) 离婚休妻(gid, wife int64) {
db.Lock()
defer db.Unlock()
delete(db.mp[gid], -wife)
}


func (db *婚姻登记) 离婚休夫(gid, husband int64) {
db.Lock()
defer db.Unlock()
delete(db.mp[gid], husband)
}


func (db *婚姻登记) 有登记(gid int64) (ok bool) {
db.Lock()
defer db.Unlock()
Expand All @@ -74,7 +70,6 @@ func (db *婚姻登记) 有登记(gid int64) (ok bool) {
return
}


func (db *婚姻登记) 花名册(ctx *zero.Ctx, gid int64) string {
db.Lock()
defer db.Unlock()
Expand All @@ -95,7 +90,6 @@ func (db *婚姻登记) 花名册(ctx *zero.Ctx, gid int64) string {
}))
}


func (db *婚姻登记) 查户口(gid, uid int64) (userinfo *userinfo, gender int, ok bool) {
db.Lock()
defer db.Unlock()
Expand All @@ -112,7 +106,6 @@ func (db *婚姻登记) 查户口(gid, uid int64) (userinfo *userinfo, gender in
return
}


func (db *婚姻登记) 登记(gid, uid, target int64, username, targetname string) {
db.Lock()
defer db.Unlock()
Expand Down

0 comments on commit bb6b2e4

Please sign in to comment.