Skip to content

[stable33] refactor: clarify fileCreate() condition by making the specific case explicit#2576

Merged
miaulalala merged 1 commit into
stable33from
backport/2568/stable33
May 10, 2026
Merged

[stable33] refactor: clarify fileCreate() condition by making the specific case explicit#2576
miaulalala merged 1 commit into
stable33from
backport/2568/stable33

Conversation

@backportbot
Copy link
Copy Markdown

@backportbot backportbot Bot commented May 7, 2026

Backport of PR #2568

…explicit

The original condition used a double-negative (De Morgan) form that made
the public-upload branch hard to read as the else. Rewrite as a positive
check — empty identifier AND public share token — and make the
public-upload path the if-branch. Adds the missing fourth test case
(non-empty identifier + isPublicShareToken=true → regular upload).

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 7, 2026

Activity    Run #3721

Run Properties:  status check passed Passed #3721  •  git commit a15bc00538: [stable33] refactor: clarify fileCreate() condition by making the specific case ...
Project Activity
Branch Review backport/2568/stable33
Run status status check passed Passed #3721
Run duration 03m 23s
Commit git commit a15bc00538: [stable33] refactor: clarify fileCreate() condition by making the specific case ...
Committer backportbot[bot]
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 ↗︎

@miaulalala miaulalala merged commit e9844c0 into stable33 May 10, 2026
55 checks passed
@miaulalala miaulalala deleted the backport/2568/stable33 branch May 10, 2026 19:34
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