Skip to content

Eliminate redundant apply for fileCollection helper - #2342

Merged
Goooler merged 1 commit into
mainfrom
g/20261025/convention-helper
Oct 25, 2026
Merged

Goooler merged 1 commit into
mainfrom
g/20261025/convention-helper

Conversation

@Goooler

@Goooler Goooler commented Oct 25, 2026

Copy link
Copy Markdown
Member

No description provided.

Copilot AI 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.

🟢 Approval recommended

The single-line refactor preserves convention initialization and the returned collection, with no unresolved findings.

No open issues 🎉

What changed in this PR

This PR simplifies the internal fileCollection helper by removing a redundant apply block while preserving its behavior and return type.

Changes:

  • Returns the result of convention(path()) directly.
  • Retains the unstable API warning suppression.
File Description
src/​main/​kotlin/​com/​github/​jengelman/​gradle/​plugins/​shadow/​internal/​GradleCompat.kt Simplifies file collection initialization without changing behavior.

Review effort: Balanced

@Goooler
Goooler enabled auto-merge (squash) October 25, 2026 07:37
@Goooler
Goooler force-pushed the g/20261025/convention-helper branch from bc841f9 to 5eb9a40 Compare October 25, 2026 07:50
@Goooler
Goooler disabled auto-merge October 25, 2026 07:50
@Goooler
Goooler merged commit 03ff579 into main Oct 25, 2026
4 checks passed
@Goooler
Goooler deleted the g/20261025/convention-helper branch October 25, 2026 07:50
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