Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: jaime merino <[email protected]ª>
  • Loading branch information
jaime merino committed Jan 23, 2025
1 parent a7366bc commit 5b9d520
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
6 changes: 1 addition & 5 deletions pkg/scalers/forgejo_runner_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,7 @@ func (s *forgejoRunnerScaler) getJobsList(ctx context.Context) (forgejo.JobsList
}

err = json.Unmarshal(b, &jobList)
if err != nil {
return jobList, err
}

return jobList, nil
return jobList, err
}

func (s *forgejoRunnerScaler) GetMetricSpecForScaling(_ context.Context) []v2.MetricSpec {
Expand Down
2 changes: 1 addition & 1 deletion pkg/scalers/forgejo_runner_scaler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ func Test_forgejoRunnerScaler_getJobsList(t *testing.T) {
client: tt.fields.client,
logger: tt.fields.logger,
}
got, err := s.getJobsList(context.TODO())
got, err := s.getJobsList(context.Background())
if !tt.wantErr(t, err, "getJobsList()") {
return
}
Expand Down

0 comments on commit 5b9d520

Please sign in to comment.