Skip to content
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
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
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ishort was deprecated by the author

- 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