Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jaym committed Nov 12, 2024
1 parent 98fb12e commit 9f82ce5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 7 additions & 1 deletion policy/resolved_policy_builder.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package policy

import (
Expand Down Expand Up @@ -369,7 +372,10 @@ func (n *rpBuilderExecutionQueryNode) build(rp *ResolvedPolicy, data *rpBuilderD
// Create a reporting job for the code id
codeIdReportingJob := addReportingJob(n.query.CodeId, false, codeIdReportingJobUUID, ReportingJob_UNSPECIFIED, rp)
// Connect the datapoints to the reporting job
connectDatapointsToReportingJob(executionQuery, codeIdReportingJob, rp.CollectorJob.Datapoints)
err = connectDatapointsToReportingJob(executionQuery, codeIdReportingJob, rp.CollectorJob.Datapoints)
if err != nil {
return err
}

return nil
}
Expand Down
3 changes: 3 additions & 0 deletions policy/resolver_v2_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
// Copyright (c) Mondoo, Inc.
// SPDX-License-Identifier: BUSL-1.1

package policy_test

import (
Expand Down

0 comments on commit 9f82ce5

Please sign in to comment.