Skip to content

Commit

Permalink
build: fix lint issues (#271)
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 authored May 6, 2024
1 parent 8087510 commit 8f0ef64
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ linters:
- goimports
- goprintffuncname
- gosec
- ifshort
- misspell
- prealloc
- revive
Expand Down
2 changes: 1 addition & 1 deletion bubbletea/tea_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func newRenderer(s ssh.Session) *lipgloss.Renderer {
return r
}

// copied from x/exp/term
// copied from x/exp/term.
func queryBackgroundColor(s ssh.Session) (bg color.Color) {
_ = term.QueryTerminal(s, s, func(events []input.Event) bool {
for _, e := range events {
Expand Down
2 changes: 1 addition & 1 deletion options.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func WithBannerHandler(h ssh.BannerHandler) ssh.Option {
// Notice that middlewares are composed from first to last, which means the last one is executed first.
func WithMiddleware(mw ...Middleware) ssh.Option {
return func(s *ssh.Server) error {
h := func(s ssh.Session) {}
h := func(ssh.Session) {}
for _, m := range mw {
h = m(h)
}
Expand Down
2 changes: 1 addition & 1 deletion scp/copy_from_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ func copyFromClient(s ssh.Session, info Info, handler CopyFromClientHandler) err
}

// read the trailing nil char
_, _ = r.ReadByte() // TODO: check if it is indeed a NULL?
_, _ = r.ReadByte()

mtime = 0
atime = 0
Expand Down

0 comments on commit 8f0ef64

Please sign in to comment.