Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: make lint happy #1079

Merged
merged 1 commit into from
Oct 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/reviewdog.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Test & Lint
name: Review Dog

on:
push:
Expand Down
2 changes: 1 addition & 1 deletion dice/censor/trie.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (t *trie) Match(text string) (sensitiveWords map[string]Level) {

sensitiveWords = map[string]Level{}
chars := []rune(text)
for i := range len(chars) {
for i := range chars {
cur := t.root.findChild(chars[i])
if cur == nil {
continue
Expand Down
2 changes: 1 addition & 1 deletion dice/dice_jsvm_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ func sameScriptInfos(a []*JsScriptInfo, b []*JsScriptInfo) bool {
if len(a) != len(b) {
return false
}
for i := range len(a) {
for i := range a {
if !sameScriptInfo(a[i], b[i]) {
return false
}
Expand Down
2 changes: 1 addition & 1 deletion dice/platform_adapter_gocq.go
Original file line number Diff line number Diff line change
Expand Up @@ -698,7 +698,7 @@ func (pa *PlatformAdapterGocq) Serve() int {

if len(m2) == len(items) {
ok := true
for i := range len(m2) {
for i := range m2 {
if m2[i] != items[i] {
ok = false
break
Expand Down
2 changes: 1 addition & 1 deletion dice/platform_adapter_walleq.go
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,7 @@ func (pa *PlatformAdapterWalleQ) Serve() int {

if len(m2) == len(items) {
ok := true
for i := range len(m2) {
for i := range m2 {
if m2[i] != items[i] {
ok = false
break
Expand Down
2 changes: 1 addition & 1 deletion dice/rollvm.go
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,7 @@ func (e *RollExpression) Evaluate(_ *Dice, ctx *MsgContext) (*VMStack, string, e
}

text := "{"
for i := range len(nums) {
for i := range nums {
if int64(i) == diceKQ {
text += "| "
}
Expand Down