mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 10:52:25 +00:00
cmd/utils: golint fmt
This commit is contained in:
parent
7212a77c2d
commit
405cb7ef27
2 changed files with 5 additions and 5 deletions
|
|
@ -32,7 +32,7 @@ import (
|
||||||
|
|
||||||
// DirectoryString is a custom type which is registered in the flags library
|
// 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
|
// which cli uses for argument parsing. This allows us to expand Value to
|
||||||
// an absolute path when the argument is parsed
|
// an absolute path when the argument is parsed.
|
||||||
type DirectoryString string
|
type DirectoryString string
|
||||||
|
|
||||||
func (s *DirectoryString) String() 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 {
|
func (f DirectoryFlag) GetName() string {
|
||||||
return f.Name
|
return f.Name
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -238,7 +238,7 @@ var (
|
||||||
}
|
}
|
||||||
defaultSyncMode = eth.DefaultConfig.SyncMode
|
defaultSyncMode = eth.DefaultConfig.SyncMode
|
||||||
// SyncModeFlag is the blockchain sync mode ("fast", "full", or "light")
|
// SyncModeFlag is the blockchain sync mode ("fast", "full", or "light")
|
||||||
SyncModeFlag = TextMarshalerFlag{
|
SyncModeFlag = TextMarshalerFlag{
|
||||||
Name: "syncmode",
|
Name: "syncmode",
|
||||||
Usage: `Blockchain sync mode ("fast", "full", or "light")`,
|
Usage: `Blockchain sync mode ("fast", "full", or "light")`,
|
||||||
Value: &defaultSyncMode,
|
Value: &defaultSyncMode,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue