Skip to content

Fix useless assignment in moderation notify - #320

Merged
admdly merged 1 commit into
mainfrom
fix/notify-useless-assignment
Nov 14, 2026
Merged

admdly merged 1 commit into
mainfrom
fix/notify-useless-assignment

Conversation

@admdly

@admdly admdly commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Addresses CodeQL "Useless assignment to local variable" in src/services/extensions/v2/email/notify.ts:39.

  • Declare developerId without initializer to match surrounding let to / extensionName / developerName style.
  • Assign explicitly per branch (claim and developer paths use input.developerId, extension path uses recipient.developerId).
  • No behavior change; same values reach buildModerationEmail.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
🔒 Security Review ✅ Completed 2026-11-14T10:55:40.262974Z bff08a8 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@admdly admdly self-assigned this Nov 14, 2026

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No issues found across 1 file

Auto-approved: Refactor removes a useless initializer by assigning developerId explicitly in each branch; assigned values match the previous initial value, so behavior is unchanged and the CodeQL warning is resolved.

Turn on auto-fix | Re-trigger cubic

@admdly
admdly force-pushed the fix/notify-useless-assignment branch from bff08a8 to 394be58 Compare November 14, 2026 11:00
@github-actions

Copy link
Copy Markdown

Deploying Preview to Cloudflare (api)

Preview URL: https://fix-notify-useless-assignment-api.fossbilling.workers.dev/ (commit 394be58)

This URL reflects your latest successful Preview deployment.

Preview Deployments by commit

Status Deployment URL Commit Updated (UTC) Details
Build: Success ✅
Deployment: Success ✅
https://6ee8beea-api.fossbilling.workers.dev/ 394be58 2026-11-14T11:03:16.997Z View logs ↗

@admdly
admdly merged commit 5a0b849 into main Nov 14, 2026
23 checks passed
@admdly
admdly deleted the fix/notify-useless-assignment branch November 14, 2026 11:04
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.

1 participant