mirror of
https://github.com/rclone/rclone.git
synced 2025-12-11 22:14:05 +01:00
all: fix go-critic linter suggestions
This commit is contained in:
committed by
Nick Craig-Wood
parent
44abf6473e
commit
06c9f76cd2
@@ -172,7 +172,7 @@ func newTest(pkg, remote string, subdir bool, fastlist bool) *test {
|
||||
pkg: pkg,
|
||||
remote: remote,
|
||||
subdir: subdir,
|
||||
cmdLine: []string{binary, "-test.timeout", (*timeout).String(), "-remote", remote},
|
||||
cmdLine: []string{binary, "-test.timeout", timeout.String(), "-remote", remote},
|
||||
try: 1,
|
||||
}
|
||||
if *fstest.Verbose {
|
||||
@@ -226,7 +226,7 @@ func (t *test) findFailures() {
|
||||
|
||||
// nextCmdLine returns the next command line
|
||||
func (t *test) nextCmdLine() []string {
|
||||
cmdLine := t.cmdLine[:]
|
||||
cmdLine := t.cmdLine
|
||||
if t.runFlag != "" {
|
||||
cmdLine = append(cmdLine, "-test.run", t.runFlag)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user