Skip to content

Commit 73f92a2

Browse files
committed
lint: golangci: fix
1 parent b67ca2e commit 73f92a2

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

apps/server/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ func main() {
4848
groupbot.ServeAwsLambda(intentRouter)
4949
case "nethttp":
5050
log.Println("Starting Engine [net/http]")
51-
groupbot.ServeNetHttp(intentRouter)
51+
groupbot.ServeNetHTTP(intentRouter)
5252
default:
5353
log.Printf("E_NO_HTTP_ENGINE: [%v]", engine)
5454
}

bot.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -234,8 +234,8 @@ func (bot *Groupbot) ProcessEvent(reqBodyBytes []byte) (*hum.ResponseInfo, error
234234
}, nil
235235
}
236236

237-
glipApiUtil := ru.GlipApiUtil{ApiClient: bot.RingCentralClient}
238-
groupMemberCount, err := glipApiUtil.GlipGroupMemberCount(glipPostEvent.GroupId)
237+
glipAPIUtil := ru.GlipApiUtil{ApiClient: bot.RingCentralClient}
238+
groupMemberCount, err := glipAPIUtil.GlipGroupMemberCount(glipPostEvent.GroupId)
239239
if err != nil {
240240
groupMemberCount = -1
241241
}
@@ -252,7 +252,7 @@ func (bot *Groupbot) ProcessEvent(reqBodyBytes []byte) (*hum.ResponseInfo, error
252252
log.Info("AT_MENTION_INPUT: " + string(jsonutil.MustMarshal(info, true)))
253253
log.Info("CONFIG: " + string(jsonutil.MustMarshal(bot.AppConfig, true)))
254254

255-
atMentionedOrGroupOfTwo, err := glipApiUtil.AtMentionedOrGroupOfTwoFuzzy(info)
255+
atMentionedOrGroupOfTwo, err := glipAPIUtil.AtMentionedOrGroupOfTwoFuzzy(info)
256256

257257
if err != nil {
258258
log.Info("AT_MENTION_ERR: " + err.Error())
@@ -310,8 +310,8 @@ func (bot *Groupbot) ProcessEvent(reqBodyBytes []byte) (*hum.ResponseInfo, error
310310

311311
func (bot *Groupbot) SendGlipPost(glipPostEventInfo *GlipPostEventInfo, reqBody rc.GlipCreatePost) (*hum.ResponseInfo, error) {
312312
if bot.AppConfig.GroupbotResponseAutoAtMention && glipPostEventInfo.GroupMemberCount > 2 {
313-
atMentionId := strings.TrimSpace(glipPostEventInfo.PostEvent.CreatorId)
314-
reqBody.Text = ru.PrefixAtMentionUnlessMentioned(atMentionId, reqBody.Text)
313+
atMentionID := strings.TrimSpace(glipPostEventInfo.PostEvent.CreatorId)
314+
reqBody.Text = ru.PrefixAtMentionUnlessMentioned(atMentionID, reqBody.Text)
315315
}
316316

317317
reqBody.Text = bot.AppConfig.AppendPostSuffix(reqBody.Text)

engine_net-http.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
log "github.com/sirupsen/logrus"
88
)
99

10-
func ServeNetHttp(intentRouter IntentRouter) {
10+
func ServeNetHTTP(intentRouter IntentRouter) {
1111
bot := Groupbot{}
1212
bot.Initialize()
1313
bot.IntentRouter = intentRouter

0 commit comments

Comments
 (0)