Skip to content

direct: refactor permissions objectIDRef into helper with if-elseif-else#5007

Merged
janniklasrose merged 4 commits intomainfrom
janniklasrose/direct-resources-prefix-ifelse
Apr 21, 2026
Merged

direct: refactor permissions objectIDRef into helper with if-elseif-else#5007
janniklasrose merged 4 commits intomainfrom
janniklasrose/direct-resources-prefix-ifelse

Conversation

@janniklasrose
Copy link
Copy Markdown
Contributor

Summary

  • Extracts the objectIDRef helper from PreparePermissionsInputConfig to consolidate three sequential independent if strings.HasPrefix reassignments into a single if-elseif-else chain.
  • No behaviour change; the logic is identical.

Test plan

  • Existing unit tests pass (make test)

This pull request and its description were written by Isaac.

Comment thread bundle/direct/dresources/permissions.go Outdated
@janniklasrose janniklasrose added this pull request to the merge queue Apr 21, 2026
Merged via the queue into main with commit 88b415f Apr 21, 2026
24 checks passed
@janniklasrose janniklasrose deleted the janniklasrose/direct-resources-prefix-ifelse branch April 21, 2026 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants