Skip to content

fix: remove redundant regex substitution in Plugins.pm#343

Draft
Koan-Bot wants to merge 1 commit intoabw:masterfrom
atoomic:koan.atoomic/remove-redundant-regex-plugins
Draft

fix: remove redundant regex substitution in Plugins.pm#343
Koan-Bot wants to merge 1 commit intoabw:masterfrom
atoomic:koan.atoomic/remove-redundant-regex-plugins

Conversation

@Koan-Bot
Copy link
Contributor

@Koan-Bot Koan-Bot commented Mar 8, 2026

What

Remove a duplicate $file =~ s|::|/|g substitution in the PLUGIN_NAME path of _load().

Why

Line 185 already does ($file = $module) =~ s|::|/|g, which assigns and substitutes in one expression. Line 186 repeated the exact same substitution — a no-op since all :: were already replaced.

How

Deleted the redundant line 186.

Testing

Full test suite passes (2961 tests, 107 files).


🤖 Generated with Claude Code

Line 185 already performs `($file = $module) =~ s|::|/|g` which assigns
$module to $file and replaces all `::` with `/` in a single operation.
Line 186 repeated the same substitution on $file, which is a no-op since
all `::` occurrences were already replaced.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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