Skip to content
This repository has been archived by the owner on Nov 8, 2022. It is now read-only.

Commit

Permalink
Merge pull request #624 from candysmurf/golint-cmd
Browse files Browse the repository at this point in the history
address golint warnings for cmd package
  • Loading branch information
candysmurf committed Dec 11, 2015
2 parents c6e63f9 + 2ddc952 commit c1bbfb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions cmd/snapctl/commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ func printFields(tw *tabwriter.Writer, indent bool, width int, fields ...interfa
fmt.Fprintln(tw, argArray...)
}

// ByCommand contains array of CLI commands.
type ByCommand []cli.Command

func (s ByCommand) Len() int {
Expand Down
2 changes: 2 additions & 0 deletions cmd/snapctl/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ var (
unionParseFormat = timeParseFormat + " " + dateParseFormat
)

// Constants used to truncate task hit and miss counts
// e.g. 1K, 1M, etc.
const (
K = 1000
M = 1000 * K
Expand Down

0 comments on commit c1bbfb3

Please sign in to comment.