Skip to content

fix: remove redundant code patterns#2732

Open
dashitongzhi wants to merge 2 commits into
ruby-grape:masterfrom
dashitongzhi:fix/code-quality-improvements
Open

fix: remove redundant code patterns#2732
dashitongzhi wants to merge 2 commits into
ruby-grape:masterfrom
dashitongzhi:fix/code-quality-improvements

Conversation

@dashitongzhi
Copy link
Copy Markdown

Summary

Remove redundant code patterns in Ruby code.

Changes

  • lib/grape/router.rb: Remove redundant .dup call
  • lib/grape/dsl/parameters.rb: Remove redundant attrs check

Motivation

Clean up unnecessary operations for better performance.

Copilot AI review requested due to automatic review settings May 20, 2026 02:04
Copy link
Copy Markdown
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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.

2 participants