Skip to content

Commit 45a1971

Browse files
committed
fix linting issues
1 parent c3efa9e commit 45a1971

File tree

4 files changed

+4
-1
lines changed

4 files changed

+4
-1
lines changed

cmd/tailscaled/tailscaled.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ func shouldRunCLI() bool {
164164
return false
165165
}
166166
if len(os.Args) > 0 && filepath.Base(os.Args[0]) == "tailscale" {
167+
// nolint:misspell
167168
// The binary was named (or hardlinked) as "tailscale".
168169
return true
169170
}

safesocket/safesocket_darwin.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func SetCredentials(token string, port int) {
102102

103103
// InitListenerDarwin initializes the listener for the CLI commands
104104
// and localapi HTTP server and sets the port/token. This will override
105-
// any credentials set explicitly via SetCredentials(). Calling this mulitple times
105+
// any credentials set explicitly via SetCredentials(). Calling this multiple times
106106
// has no effect. The listener and it's corresponding token/port is initialized only once.
107107
func InitListenerDarwin(sharedDir string) (*net.Listener, error) {
108108
ssd.mu.Lock()

tempfork/sshtest/ssh/handshake.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ write:
297297
break write
298298
}
299299
case <-t.requestKex:
300+
// nolint:revive
300301
break
301302
}
302303

tempfork/sshtest/ssh/handshake_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,7 @@ func TestStrictKEXMixed(t *testing.T) {
10051005
case err = <-readOneFailure:
10061006
t.Fatalf("server readOnePacket failed: %s", err)
10071007
case request = <-transport.startKex:
1008+
// nolint:revive
10081009
break
10091010
}
10101011

0 commit comments

Comments
 (0)