Skip to content

Commit

Permalink
chore: fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Oct 21, 2021
1 parent ac4d875 commit 784bb46
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,6 @@ issues:

- linters: [ revive ]
text: "if-return: redundant if ...; err != nil check, just return error instead."

- linters: [ unparam ]
text: "Builder.+is never used"
4 changes: 2 additions & 2 deletions telegram/message/entity/format.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import (

type utf8entity struct {
offset int
length int
length int
}

// Builder builds message string and text entities.
type Builder struct {
entities []tg.MessageEntityClass
// lengths stores offset/length data too, but in UTF-8 codepoints
lengths []utf8entity
lengths []utf8entity
// We store index of first entity added at last Format call.
// It needed to trim space in all entities of last text block.
lastFormatIndex int
Expand Down
1 change: 0 additions & 1 deletion telegram/message/entity/html_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,4 @@ One more line.
},
}),
)

}

0 comments on commit 784bb46

Please sign in to comment.