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

Commit c1bbfb3

Browse files
committed
Merge pull request #624 from candysmurf/golint-cmd
address golint warnings for cmd package
2 parents c6e63f9 + 2ddc952 commit c1bbfb3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

cmd/snapctl/commands.go

+1
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,7 @@ func printFields(tw *tabwriter.Writer, indent bool, width int, fields ...interfa
231231
fmt.Fprintln(tw, argArray...)
232232
}
233233

234+
// ByCommand contains array of CLI commands.
234235
type ByCommand []cli.Command
235236

236237
func (s ByCommand) Len() int {

cmd/snapctl/task.go

+2
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ var (
4848
unionParseFormat = timeParseFormat + " " + dateParseFormat
4949
)
5050

51+
// Constants used to truncate task hit and miss counts
52+
// e.g. 1K, 1M, etc.
5153
const (
5254
K = 1000
5355
M = 1000 * K

0 commit comments

Comments
 (0)