Skip to content

Commit 258643f

Browse files
hsluoyzCopilot
andauthored
Update enforcer.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent e6c2869 commit 258643f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

enforcer.go

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -844,12 +844,6 @@ func (e *Enforcer) enforce(matcher string, explains *[]string, rvals ...interfac
844844
e.putPolicyEffectsBuffer(policyEffectsBuffer)
845845
e.putMatcherResultsBuffer(matcherResultsBuffer)
846846
}()
847-
for i := range matcherResults {
848-
matcherResults[i] = 0
849-
}
850-
for i := range policyEffects {
851-
policyEffects[i] = 0
852-
}
853847

854848
for policyIndex, pvals := range e.model["p"][pType].Policy {
855849
// log.LogPrint("Policy Rule: ", pvals)

0 commit comments

Comments
 (0)