Commit 73c9a7fd authored by Nadim Kobeissi's avatar Nadim Kobeissi 💾
Browse files

Fix linter

parent d86d116e
Pipeline #800 passed with stages
in 1 minute and 43 seconds
......@@ -72,7 +72,8 @@ func verifyStandardRun(valKnowledgeMap *KnowledgeMap, valPrincipalStates []*Prin
valAttackerState := attackerStateGetRead()
for _, valPrincipalState := range valPrincipalStates {
var err error
valPrincipalState, err := valueResolveAllPrincipalStateValues(valPrincipalState, valAttackerState)
var failedRewrites []*Primitive
valPrincipalState, err = valueResolveAllPrincipalStateValues(valPrincipalState, valAttackerState)
if err != nil {
return err
}
......@@ -82,7 +83,7 @@ func verifyStandardRun(valKnowledgeMap *KnowledgeMap, valPrincipalStates []*Prin
injectMissingSkeletons(a.Primitive, valPrincipalState, valAttackerState)
}
}
failedRewrites, _, valPrincipalState := valuePerformAllRewrites(valPrincipalState)
failedRewrites, _, valPrincipalState = valuePerformAllRewrites(valPrincipalState)
err = sanityFailOnFailedCheckedPrimitiveRewrite(failedRewrites)
if err != nil {
return err
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment