Skip to content

Conversation

@digizeph
Copy link
Owner

Remove unnecessary return statement in the workflows example

Summary

The return statement proposed to be deleted here follows immediately after another return statement above, and is quite unnecessary.

Screenshots (optional)

Documentation checklist

  • The documentation style guide has been adhered to.
  • If a larger change - such as adding a new page- an issue has been opened in relation to any incorrect or out of date information that this PR fixes.
  • Files which have changed name or location have been allocated redirects.

Remove unnecessary return statement in the workflows example
Copilot AI review requested due to automatic review settings June 14, 2025 18:17
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the workflows documentation by removing an unnecessary return statement that immediately follows a previous return statement in the example code, thereby improving clarity.

  • Removed redundant return statement in the workflows code snippet
Comments suppressed due to low confidence (1)

src/content/docs/workflows/build/trigger-workflows.mdx:90

  • The removed return statement is redundant as it immediately follows an earlier return, which could lead to confusion. Its removal improves the clarity of the example without affecting the response structure.
return Response.json({ result });

@github-actions
Copy link

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/workflows/ @elithrar, @celso, @cloudflare/pcx-technical-writing

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