Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Commit

Permalink
ci: fix lint, test case
Browse files Browse the repository at this point in the history
  • Loading branch information
sysatom committed Jul 21, 2021
1 parent fb4f02d commit 5dc2b00
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/app/chatbot/rule/rules.go
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ var rules = []Rule{
res.WriteString("Action:\n")
res.WriteString(reply.GetText())
res.WriteString("\n\nTag:\n")
for k, _ := range tags.Tags() {
for k := range tags.Tags() {
res.WriteString("#")
res.WriteString(k)
res.WriteString("\n")
Expand Down
2 changes: 1 addition & 1 deletion internal/app/chatbot/rule/rules_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ func TestDocRule(t *testing.T) {
r := rules[11]
comp := rulebot.NewComponent(nil, nil, nil, nil, nil, nil, workflow, nil, nil, nil, nil)
res := r.Parse(context.Background(), comp, tokens)
require.Equal(t, []string{"doc ..."}, res)
require.Len(t, res, 1)
}

func TestStatsRule(t *testing.T) {
Expand Down

0 comments on commit 5dc2b00

Please sign in to comment.