mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2025-12-17 21:55:26 +00:00
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:
parent
70eeb6c210
commit
9fcacd0f86
2
.github/workflows/tests.yaml
vendored
2
.github/workflows/tests.yaml
vendored
@ -24,7 +24,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: projectdiscovery/actions/setup/go@v1
|
- uses: projectdiscovery/actions/setup/go@v1
|
||||||
- uses: projectdiscovery/actions/golangci-lint@v1
|
- uses: projectdiscovery/actions/golangci-lint/v2@v1
|
||||||
|
|
||||||
tests:
|
tests:
|
||||||
name: "Tests"
|
name: "Tests"
|
||||||
|
|||||||
@ -181,6 +181,6 @@ func (b *Browser) getHTTPClient() (*http.Client, error) {
|
|||||||
func (b *Browser) Close() {
|
func (b *Browser) Close() {
|
||||||
_ = b.engine.Close()
|
_ = b.engine.Close()
|
||||||
b.launcher.Kill()
|
b.launcher.Kill()
|
||||||
os.RemoveAll(b.tempDir)
|
_ = os.RemoveAll(b.tempDir)
|
||||||
processutil.CloseProcesses(processutil.IsChromeProcess, b.previousPIDs)
|
processutil.CloseProcesses(processutil.IsChromeProcess, b.previousPIDs)
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,7 +54,7 @@ type Options struct {
|
|||||||
|
|
||||||
// New creates a new issue tracker integration client based on options.
|
// New creates a new issue tracker integration client based on options.
|
||||||
func New(options *Options) (*Integration, error) {
|
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 {
|
if options.HttpClient != nil && options.HttpClient.HTTPClient.Transport != nil {
|
||||||
transport = options.HttpClient.HTTPClient.Transport
|
transport = options.HttpClient.HTTPClient.Transport
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user