diff --git a/.travis.yml b/.travis.yml index eeda0f3c..13d16ff5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -18,7 +18,7 @@ install: script: - diff <(echo -n) <(gofmt -s -d .) - ineffassign . - - go vet ./... + - go vet $(go list ./... | grep -v /vendor/) - go test $(go list ./... | grep -v /vendor/) after_script: diff --git a/chat/message/theme.go b/chat/message/theme.go index 8250b591..be4f9cd7 100644 --- a/chat/message/theme.go +++ b/chat/message/theme.go @@ -174,14 +174,14 @@ func init() { palette := readableColors256() Themes = []Theme{ - Theme{ + { id: "colors", names: palette, sys: palette.Get(8), // Grey pm: palette.Get(7), // White highlight: style(Bold + "\033[48;5;11m\033[38;5;16m"), // Yellow highlight }, - Theme{ + { id: "mono", }, } diff --git a/host.go b/host.go index 50178581..07af926b 100644 --- a/host.go +++ b/host.go @@ -197,7 +197,7 @@ func (h *Host) completeName(partial string) string { } func (h *Host) completeCommand(partial string) string { - for cmd, _ := range h.commands { + for cmd := range h.commands { if strings.HasPrefix(cmd, partial) { return cmd } diff --git a/sshd/pty.go b/sshd/pty.go index 06d34f03..4443fd33 100644 --- a/sshd/pty.go +++ b/sshd/pty.go @@ -28,11 +28,11 @@ func parsePtyRequest(s []byte) (width, height int, ok bool) { } func parseWinchRequest(s []byte) (width, height int, ok bool) { - width32, s, ok := parseUint32(s) + width32, _, ok := parseUint32(s) if !ok { return } - height32, s, ok := parseUint32(s) + height32, _, ok := parseUint32(s) if !ok { return }