FrostFS Access Policy Engine
Find a file
Evgenii Stratonikov a03c00c44f
Some checks failed
DCO action / DCO (pull_request) Failing after 53s
Tests and linters / Tests (1.21) (pull_request) Successful in 48s
Tests and linters / Tests (1.20) (pull_request) Successful in 50s
Tests and linters / Tests with -race (pull_request) Successful in 1m11s
Tests and linters / Lint (pull_request) Successful in 1m41s
Tests and linters / Staticcheck (pull_request) Successful in 1m48s
engine: Simplify multiple chains processing
So, it's sunday evening and I am sitting on-call trying to debug strange
node behaviour. It took me 3 whole minutes to understand the code being
changed: it accumulates bools in slices, even though no slice is needed;
it uses subtle condition from the first loop to make decision in the
second one, and finally it uses named return values.

In this commit we remove the slice and the second loop, because why not.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-08-19 09:32:47 +03:00
.forgejo/workflows [#50] .fordejo: Update DCO action 2024-02-06 12:58:42 +03:00
docs [#71] docs: Introduce APE overview 2024-05-13 16:37:44 +00:00
iam [#80] iam: Move resource tag to resource property 2024-06-11 13:29:30 +03:00
pkg engine: Simplify multiple chains processing 2024-08-19 09:32:47 +03:00
schema [#85] schema: Introduce PatchObject method 2024-08-14 11:02:54 +03:00
util [#7] engine: Move globMatch to common util package 2023-11-15 09:22:42 +00:00
.gitattributes [#56] Fix pre-commit issue 2024-03-07 18:01:50 +03:00
.gitignore Initial commit 2023-10-04 08:29:00 +00:00
.gitlint Initial commit 2023-10-04 08:29:00 +00:00
.golangci.yml [#14] pre-commit: Add gofumpt 2023-11-01 11:24:25 +03:00
.pre-commit-config.yaml [#73] pre-commit: Use cached tests in hook 2024-05-02 18:15:53 +03:00
go.mod [#62] morph: List morph rules chains by traversing iterator 2024-04-26 06:20:43 +00:00
go.sum [#62] morph: List morph rules chains by traversing iterator 2024-04-26 06:20:43 +00:00
Makefile [#73] Makefile: Allow to override test flags 2024-05-02 18:15:53 +03:00