ci: bump up golangci-lint to v1.55.0

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
Kohei Tokunaga 2023-10-24 09:23:28 +09:00
parent 18c9e7ec4c
commit 9fc407d8cf
No known key found for this signature in database
GPG Key ID: 6CE0A04690DB3FB3
2 changed files with 2 additions and 3 deletions

View File

@ -39,7 +39,7 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- uses: golangci/golangci-lint-action@v3 - uses: golangci/golangci-lint-action@v3
with: with:
version: v1.54.2 version: v1.55.0
skip-cache: true skip-cache: true
args: --timeout=8m args: --timeout=8m

View File

@ -117,9 +117,8 @@ func parseEndpoint(endpoint string) (string, string, error) {
return "npipe", fmt.Sprintf("//%s%s", host, u.Path), nil return "npipe", fmt.Sprintf("//%s%s", host, u.Path), nil
} else if u.Scheme == "" { } else if u.Scheme == "" {
return "", "", fmt.Errorf("Using %q as endpoint is deprecated, please consider using full url format", endpoint) return "", "", fmt.Errorf("Using %q as endpoint is deprecated, please consider using full url format", endpoint)
} else {
return u.Scheme, "", fmt.Errorf("protocol %q not supported", u.Scheme)
} }
return u.Scheme, "", fmt.Errorf("protocol %q not supported", u.Scheme)
} }
var tickCount = syscall.NewLazyDLL("kernel32.dll").NewProc("GetTickCount64") var tickCount = syscall.NewLazyDLL("kernel32.dll").NewProc("GetTickCount64")