Add unconvert linter
This linter checks for unnecessary type convertions. Some convertions are whitelisted because their type is different on 32bit platforms Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
@@ -93,7 +93,7 @@ var pprofTraceCommand = cli.Command{
|
||||
cli.DurationFlag{
|
||||
Name: "seconds,s",
|
||||
Usage: "trace time (seconds)",
|
||||
Value: time.Duration(5 * time.Second),
|
||||
Value: 5 * time.Second,
|
||||
},
|
||||
},
|
||||
Action: func(context *cli.Context) error {
|
||||
|
||||
Reference in New Issue
Block a user