Skip to content

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

Merged
miaulalala merged 1 commit intostable32from
backport/2568/stable32
May 7, 2026
Merged

[stable32] refactor: clarify fileCreate() condition by making the specific case explicit#2577
miaulalala merged 1 commit intostable32from
backport/2568/stable32

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>
@miaulalala miaulalala enabled auto-merge May 7, 2026 11:13
@cypress
Copy link
Copy Markdown

cypress Bot commented May 7, 2026

Activity    Run #3719

Run Properties:  status check passed Passed #3719  •  git commit 3b0fa0a75c: [stable32] refactor: clarify fileCreate() condition by making the specific case ...
Project Activity
Branch Review backport/2568/stable32
Run status status check passed Passed #3719
Run duration 02m 18s
Commit git commit 3b0fa0a75c: [stable32] 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 09a669f into stable32 May 7, 2026
57 of 59 checks passed
@miaulalala miaulalala deleted the backport/2568/stable32 branch May 7, 2026 13:16
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