Skip to content

refactor: flatten nesting in shareNotificationForOriginalOwners with early return#2566

Open
miaulalala wants to merge 1 commit intomasterfrom
refactor/share-notification-early-return
Open

refactor: flatten nesting in shareNotificationForOriginalOwners with early return#2566
miaulalala wants to merge 1 commit intomasterfrom
refactor/share-notification-early-return

Conversation

@miaulalala
Copy link
Copy Markdown
Collaborator

Summary

Inverts the $mount instanceof SharedMount guard in FilesHooks::shareNotificationForOriginalOwners() into an early return, removing one level of nesting from the entire method body. No behaviour change.

Test plan

  • Existing FilesHooksTest suite — green

🤖 Generated with Claude Code

…early return

Invert the SharedMount instanceof guard into an early return, removing
one level of nesting from the entire method body.

Signed-off-by: Anna Larch <anna@nextcloud.com>
AI-Assisted-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@cypress
Copy link
Copy Markdown

cypress Bot commented May 6, 2026

Activity    Run #3703

Run Properties:  status check passed Passed #3703  •  git commit bf08dffc5f: refactor: flatten nesting in shareNotificationForOriginalOwners with early retur...
Project Activity
Branch Review refactor/share-notification-early-return
Run status status check passed Passed #3703
Run duration 01m 57s
Commit git commit bf08dffc5f: refactor: flatten nesting in shareNotificationForOriginalOwners with early retur...
Committer Anna
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 0
Tests that did not run due to a developer annotating a test with .skip  Pending 1
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 9
View all changes introduced in this branch ↗︎

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant