ci(tests): migrate to golangci-lint v2 (#6380)

* chore: satisfy lints

Signed-off-by: Dwi Siswanto <git@dw1.io>

* ci(tests): migrate to golangci-lint v2

Signed-off-by: Dwi Siswanto <git@dw1.io>

---------

Signed-off-by: Dwi Siswanto <git@dw1.io>
This commit is contained in:
Dwi Siswanto 2025-08-16 13:20:09 +07:00 committed by GitHub
parent 70eeb6c210
commit 9fcacd0f86
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -24,7 +24,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: projectdiscovery/actions/setup/go@v1
- uses: projectdiscovery/actions/golangci-lint@v1
- uses: projectdiscovery/actions/golangci-lint/v2@v1
tests:
name: "Tests"

View File

@ -181,6 +181,6 @@ func (b *Browser) getHTTPClient() (*http.Client, error) {
func (b *Browser) Close() {
_ = b.engine.Close()
b.launcher.Kill()
os.RemoveAll(b.tempDir)
_ = os.RemoveAll(b.tempDir)
processutil.CloseProcesses(processutil.IsChromeProcess, b.previousPIDs)
}

View File

@ -54,7 +54,7 @@ type Options struct {
// New creates a new issue tracker integration client based on options.
func New(options *Options) (*Integration, error) {
var transport http.RoundTripper = http.DefaultTransport
var transport = http.DefaultTransport
if options.HttpClient != nil && options.HttpClient.HTTPClient.Transport != nil {
transport = options.HttpClient.HTTPClient.Transport
}