Skip to content

Commit e3f7cc9

Browse files
committed
fix: update linters
Signed-off-by: Valery Piashchynski <[email protected]>
1 parent 83acbc7 commit e3f7cc9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

internal/rpc/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func Dialer(addr string) (net.Conn, error) {
7979
return nil, errors.New("invalid socket DSN (tcp://:6001, unix://file.sock)")
8080
}
8181

82-
return net.Dial(dsn[0], dsn[1])
82+
return net.Dial(dsn[0], dsn[1]) //nolint:noctx
8383
}
8484

8585
func parseFlag(flag string) (string, string, error) {
@@ -166,7 +166,7 @@ func ExpandVal(s string, mapping func(string) string) string {
166166

167167
// getShellName returns the name that begins the string and the number of bytes
168168
// consumed to extract it. If the name is enclosed in {}, it's part of a ${}
169-
// expansion and two more bytes are needed than the length of the name.
169+
// expansion, and two more bytes are needed than the length of the name.
170170
func getShellName(s string) (string, int) {
171171
switch {
172172
case s[0] == '{':

internal/rpc/client_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func TestNewClient_ConnectionError(t *testing.T) {
3939
}
4040

4141
func TestNewClient_SuccessfullyConnected(t *testing.T) {
42-
l, err := net.Listen("tcp", "127.0.0.1:55554")
42+
l, err := net.Listen("tcp", "127.0.0.1:55554") //nolint:noctx
4343
assert.NoError(t, err)
4444

4545
defer func() { assert.NoError(t, l.Close()) }()
@@ -53,7 +53,7 @@ func TestNewClient_SuccessfullyConnected(t *testing.T) {
5353
}
5454

5555
func TestNewClient_WithIncludes(t *testing.T) {
56-
l, err := net.Listen("tcp", "127.0.0.1:6010")
56+
l, err := net.Listen("tcp", "127.0.0.1:6010") //nolint:noctx
5757
assert.NoError(t, err)
5858

5959
defer func() { assert.NoError(t, l.Close()) }()
@@ -67,7 +67,7 @@ func TestNewClient_WithIncludes(t *testing.T) {
6767
}
6868

6969
func TestNewClient_SuccessfullyConnectedOverride(t *testing.T) {
70-
l, err := net.Listen("tcp", "127.0.0.1:55554")
70+
l, err := net.Listen("tcp", "127.0.0.1:55554") //nolint:noctx
7171
assert.NoError(t, err)
7272

7373
defer func() { assert.NoError(t, l.Close()) }()
@@ -82,7 +82,7 @@ func TestNewClient_SuccessfullyConnectedOverride(t *testing.T) {
8282

8383
// ${} syntax
8484
func TestNewClient_SuccessfullyConnectedEnvDollarSyntax(t *testing.T) {
85-
l, err := net.Listen("tcp", "127.0.0.1:55556")
85+
l, err := net.Listen("tcp", "127.0.0.1:55556") //nolint:noctx
8686
assert.NoError(t, err)
8787

8888
defer func() { assert.NoError(t, l.Close()) }()

0 commit comments

Comments
 (0)