mirror of
https://github.com/Mrs4s/go-cqhttp.git
synced 2025-05-04 19:17:37 +08:00
make lint happy
This commit is contained in:
parent
837e163ef6
commit
99cdf9247a
11
coolq/api.go
11
coolq/api.go
@ -1118,13 +1118,12 @@ func (bot *CQBot) CQSetGroupMemo(groupID int64, msg, img string) global.MSG {
|
|||||||
return Failed(100, "SEND_NOTICE_ERROR", err.Error())
|
return Failed(100, "SEND_NOTICE_ERROR", err.Error())
|
||||||
}
|
}
|
||||||
return OK(global.MSG{"notice_id": noticeID})
|
return OK(global.MSG{"notice_id": noticeID})
|
||||||
} else {
|
|
||||||
noticeID, err := bot.Client.AddGroupNoticeSimple(groupID, msg)
|
|
||||||
if err != nil {
|
|
||||||
return Failed(100, "SEND_NOTICE_ERROR", err.Error())
|
|
||||||
}
|
|
||||||
return OK(global.MSG{"notice_id": noticeID})
|
|
||||||
}
|
}
|
||||||
|
noticeID, err := bot.Client.AddGroupNoticeSimple(groupID, msg)
|
||||||
|
if err != nil {
|
||||||
|
return Failed(100, "SEND_NOTICE_ERROR", err.Error())
|
||||||
|
}
|
||||||
|
return OK(global.MSG{"notice_id": noticeID})
|
||||||
}
|
}
|
||||||
return Failed(100, "GROUP_NOT_FOUND", "群聊不存在")
|
return Failed(100, "GROUP_NOT_FOUND", "群聊不存在")
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user