Skip to content

Conversation

@antongolub
Copy link
Collaborator

  • Tests pass
  • Appropriate changes to README are included in PR

@antongolub antongolub added the refactoring Internal code improvements label Jul 28, 2025
@antongolub antongolub requested a review from Copilot July 28, 2025 18:36
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

A minor code cleanup pull request focused on improving code style and formatting consistency across source and build files.

  • Simplified arrow function formatting by removing unnecessary braces and line breaks
  • Refactored error handling logic to use more concise conditional expressions
  • Updated size limit configuration to reflect actual bundle size

Reviewed Changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/util.ts Simplified while loop formatting to single line
src/core.ts Refactored error message getter with inline parameter assignment
build/util.cjs Applied same formatting changes as source file
build/core.cjs Applied same error handling refactor as source file
.size-limit.json Updated bundle size limit to match actual size
Comments suppressed due to low confidence (1)

build/core.cjs:892

  • The variable name 'error2' is unclear and suggests a naming conflict. Consider using a more descriptive name like 'errorInstance' or 'resolvedError'.
        (error2 = dto.error || message && new Error(message)) => error2 ? _ProcessOutput.getErrorMessage(error2, dto.from) : _ProcessOutput.getExitMessage(

@antongolub antongolub merged commit c06d3c6 into google:main Jul 28, 2025
28 checks passed
@antongolub antongolub deleted the minor-code-imrps branch July 28, 2025 18:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

refactoring Internal code improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant