Skip to content

Commit

Permalink
Make lint happy and try resolving conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
oissevalt committed Oct 19, 2024
1 parent d8a535a commit b17d400
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions dice/ext_log.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ func RegisterBuiltinExtLog(self *Dice) {
ReplyToSenderRaw(ctx, msg, successPrompt, "skip")
}

if args.IsArgEqual(1, "on") {
if args.IsArgEqual(1, "on") { //nolint:nestif
if !checkGroupEnviron(true) {
return CmdExecuteResult{Matched: true, Solved: true}
}
Expand Down Expand Up @@ -260,7 +260,7 @@ func RegisterBuiltinExtLog(self *Dice) {
return CmdExecuteResult{Matched: true, Solved: true}
}

collectLogAndUpload(groupID, logName)
go collectLogAndUpload(groupID, logName)
} else if args.IsArgEqual(1, "end") {
if currentGroup.LogCurName == "" {
ReplyToSender(ctx, msg, DiceFormatTmpl(ctx, "日志:记录_关闭_失败"))
Expand All @@ -276,7 +276,7 @@ func RegisterBuiltinExtLog(self *Dice) {
currentGroup.UpdatedAtTime = time.Now().Unix()

time.Sleep(time.Duration(0.3 * float64(time.Second)))
collectLogAndUpload(currentGroup.GroupID, currentGroup.LogCurName)
go collectLogAndUpload(currentGroup.GroupID, currentGroup.LogCurName)

currentGroup.LogCurName = ""
currentGroup.UpdatedAtTime = time.Now().Unix()
Expand Down

0 comments on commit b17d400

Please sign in to comment.