Skip to content

Commit de08e5b

Browse files
committed
pkg/generator: remove unused function parameters
1 parent e714038 commit de08e5b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

pkg/generator/generator.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import (
2222
"github.com/adevinta/vulcan-agent/queue"
2323
"github.com/adevinta/vulcan-local/pkg/checktypes"
2424
"github.com/adevinta/vulcan-local/pkg/config"
25-
"github.com/adevinta/vulcan-local/pkg/gitservice"
2625
types "github.com/adevinta/vulcan-types"
2726
)
2827

@@ -50,7 +49,7 @@ func buildOptions(options map[string]interface{}) (string, error) {
5049
return string(content), nil
5150
}
5251

53-
func GenerateJobs(cfg *config.Config, agentIp, hostIp string, gs gitservice.GitService, l log.Logger) ([]jobrunner.Job, error) {
52+
func GenerateJobs(cfg *config.Config, l log.Logger) ([]jobrunner.Job, error) {
5453
unique := map[string]*config.Check{}
5554

5655
jobs := []jobrunner.Job{}

pkg/generator/generator_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ func TestGenerateJobs(t *testing.T) {
242242
for _, tt := range tests {
243243
t.Run(tt.name, func(t *testing.T) {
244244

245-
got, err := GenerateJobs(tt.cfg, "", "", gs, loggerUser)
245+
got, err := GenerateJobs(tt.cfg, loggerUser)
246246
if errToStr(err) != errToStr(tt.wantErr) {
247247
t.Fatal(err)
248248
}

0 commit comments

Comments
 (0)