Skip to content

Commit 911d975

Browse files
committed
update lint issues
1 parent 2cf00b4 commit 911d975

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.golangci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ linters:
7878
- misspell
7979
- nakedret
8080
- noctx
81-
- nolintlint
81+
# - nolintlint
8282
- rowserrcheck
8383
- scopelint
8484
- staticcheck

cmd/hostctl/actions/post_action.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func postActionCmd(cmd *cobra.Command, args []string, postCmd *cobra.Command, li
7474

7575
func waitSignalOrDuration(d time.Duration) <-chan struct{} {
7676
done := make(chan struct{})
77-
sig := make(chan os.Signal)
77+
sig := make(chan os.Signal, 1)
7878

7979
if d < 0 {
8080
d = -d

cmd/hostctl/actions/sync_docker_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func newClientWithResponse(t *testing.T, resp map[string]string) *client.Client
3636
t.Helper()
3737

3838
v := "1.22"
39-
c, err := client.NewClient("tcp://fake:2345", v,
39+
c, err := client.NewClient("tcp://fake:2345", v, //nolint: staticcheck
4040
&http.Client{
4141
Transport: transportFunc(func(req *http.Request) (*http.Response, error) {
4242
url := req.URL.Path

pkg/docker/docker_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ func newClientWithResponse(t *testing.T, resp map[string]string) *client.Client
102102
t.Helper()
103103

104104
v := "1.22"
105-
c, err := client.NewClient("tcp://fake:2345", v,
105+
c, err := client.NewClient("tcp://fake:2345", v, //nolint: staticcheck
106106
&http.Client{
107107
Transport: transportFunc(func(req *http.Request) (*http.Response, error) {
108108
url := req.URL.Path
@@ -116,7 +116,7 @@ func newClientWithResponse(t *testing.T, resp map[string]string) *client.Client
116116
}, nil
117117
}),
118118
},
119-
map[string]string{})
119+
map[string]string{}) //nolint: staticcheck
120120

121121
assert.NoError(t, err)
122122

pkg/parser/docker_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ func newClientWithResponse(t *testing.T, resp map[string]string) *client.Client
130130
t.Helper()
131131

132132
v := "1.22"
133-
c, err := client.NewClient("tcp://fake:2345", v,
133+
c, err := client.NewClient("tcp://fake:2345", v, //nolint: staticcheck
134134
&http.Client{
135135
Transport: transportFunc(func(req *http.Request) (*http.Response, error) {
136136
url := req.URL.Path

pkg/parser/parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ func parseRouteLine(str string) (*types.Route, bool) {
146146
if len(clean) == 0 {
147147
return nil, false
148148
}
149-
149+
150150
result := endingComment.FindStringSubmatch(clean)
151151
tResult := strings.TrimSpace(result[1])
152152
p := strings.Split(tResult, " ")

0 commit comments

Comments
 (0)