Skip to content

Commit 088ea4c

Browse files
committed
SSH: Lint and typos
1 parent 30dab9b commit 088ea4c

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

integration/ssh_test.go

+4-3
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@ import (
1212
func TestSSHOneNamespaceAllToAll(t *testing.T) {
1313
IntegrationSkip(t)
1414

15-
retry := func(times int, sleepInverval time.Duration, doWork func() (string, error)) (string, error) {
15+
retry := func(times int, sleepInterval time.Duration, doWork func() (string, error)) (string, error) {
1616
var err error
1717
for attempts := 0; attempts < times; attempts++ {
18-
result, err := doWork()
18+
var result string
19+
result, err = doWork()
1920
if err == nil {
2021
return result, nil
2122
}
22-
time.Sleep(sleepInverval)
23+
time.Sleep(sleepInterval)
2324
}
2425

2526
return "", err

integration/tailscale.go

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"tailscale.com/ipn/ipnstate"
77
)
88

9+
//nolint
910
type TailscaleClient interface {
1011
Hostname() string
1112
Shutdown() error

0 commit comments

Comments
 (0)