Skip to content

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

Open
backportbot[bot] wants to merge 1 commit intostable33from
backport/2568/stable33
Open

[stable33] refactor: clarify fileCreate() condition by making the specific case explicit#2576
backportbot[bot] wants to merge 1 commit intostable33from
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 ↗︎

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