Skip to content

Commit

Permalink
Remedy linter complaint
Browse files Browse the repository at this point in the history
With golangci-lint v1.63.4.
  • Loading branch information
walles committed Jan 5, 2025
1 parent abb03b2 commit c1edb36
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions twin/screen.go
Original file line number Diff line number Diff line change
Expand Up @@ -220,8 +220,8 @@ func (screen *UnixScreen) Events() chan Event {
}

// Write string to ttyOut, panic on failure, return number of bytes written.
func (screen *UnixScreen) write(string string) int {
bytesWritten, err := screen.ttyOut.Write([]byte(string))
func (screen *UnixScreen) write(s string) int {
bytesWritten, err := screen.ttyOut.Write([]byte(s))
if err != nil {
panic(err)
}
Expand Down
4 changes: 2 additions & 2 deletions twin/styledRune.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ type StyledRune struct {
Style Style
}

func NewStyledRune(rune rune, style Style) StyledRune {
func NewStyledRune(char rune, style Style) StyledRune {
return StyledRune{
Rune: rune,
Rune: char,
Style: style,
}
}
Expand Down

0 comments on commit c1edb36

Please sign in to comment.