cmd/utils: golint fmt

This commit is contained in:
Mike Kinney 2019-12-09 23:21:12 -08:00
parent 7212a77c2d
commit 405cb7ef27
2 changed files with 5 additions and 5 deletions

View file

@ -30,9 +30,9 @@ import (
"gopkg.in/urfave/cli.v1"
)
// DirectoryString is a custom type which is registered in the flags library
// which cli uses for argument parsing. This allows us to expand Value to
// an absolute path when the argument is parsed
// DirectoryString is a custom type which is registered in the flags library
// which cli uses for argument parsing. This allows us to expand Value to
// an absolute path when the argument is parsed.
type DirectoryString string
func (s *DirectoryString) String() string {
@ -66,7 +66,7 @@ func (f DirectoryFlag) Apply(set *flag.FlagSet) {
})
}
// GetName retuns the name
// GetName returns the name
func (f DirectoryFlag) GetName() string {
return f.Name
}

View file

@ -238,7 +238,7 @@ var (
}
defaultSyncMode = eth.DefaultConfig.SyncMode
// SyncModeFlag is the blockchain sync mode ("fast", "full", or "light")
SyncModeFlag = TextMarshalerFlag{
SyncModeFlag = TextMarshalerFlag{
Name: "syncmode",
Usage: `Blockchain sync mode ("fast", "full", or "light")`,
Value: &defaultSyncMode,