From 405cb7ef271f510f4c142b2489e9314868eaf866 Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Mon, 9 Dec 2019 23:21:12 -0800 Subject: [PATCH] cmd/utils: golint fmt --- cmd/utils/customflags.go | 8 ++++---- cmd/utils/flags.go | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cmd/utils/customflags.go b/cmd/utils/customflags.go index 3a8ca8748e..819906fe51 100644 --- a/cmd/utils/customflags.go +++ b/cmd/utils/customflags.go @@ -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 } diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 56bc597c65..e5c0aab0d3 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -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,