Skip to content

Commit

Permalink
style: Fix gofmt and vet complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
shazow committed Jul 31, 2016
1 parent 7848b62 commit 2abe368
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions chat/message/theme.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
},
}
Expand Down
2 changes: 1 addition & 1 deletion host.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
4 changes: 2 additions & 2 deletions sshd/pty.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 2abe368

Please sign in to comment.