Skip to content

Commit 7b6a67d

Browse files
committed
lint
Signed-off-by: Sylwester Piskozub <sylwesterpiskozub@gmail.com>
1 parent 388055f commit 7b6a67d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • app/cli/internal/policydevel

app/cli/internal/policydevel/eval.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ func Evaluate(opts *EvalOptions, logger zerolog.Logger) (*EvalSummary, error) {
7777
material.Annotations = opts.Annotations
7878

7979
// 2. Create policy attachment
80-
policies, err := createPolicies(opts.PolicyPath, opts.Inputs, material.GetId())
80+
policies, err := createPolicies(opts.PolicyPath, opts.Inputs)
8181
if err != nil {
8282
return nil, err
8383
}
@@ -123,7 +123,7 @@ func evaluateGeneric(opts *EvalOptions, logger zerolog.Logger) (*EvalSummary, er
123123
return buildEvalSummary(policyEv, opts.Debug), nil
124124
}
125125

126-
func createPolicies(policyPath string, inputs map[string]string, materialID string) (*v1.Policies, error) {
126+
func createPolicies(policyPath string, inputs map[string]string) (*v1.Policies, error) {
127127
// Check if the policy path already has a scheme (chainloop://, http://, https://, file://)
128128
ref := policyPath
129129
scheme, _ := policies.RefParts(policyPath)

0 commit comments

Comments
 (0)