quick fix: use dry principle #4694
Conversation
|
|
Just a note we have both
|
Yes |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4694 +/- ##
==========================================
+ Coverage 74.61% 74.64% +0.03%
==========================================
Files 14 14
Lines 1674 1676 +2
Branches 420 421 +1
==========================================
+ Hits 1249 1251 +2
Misses 357 357
Partials 68 68
Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
Summary
Both
npx webpack versionandnpx webpack --versionhad same code for logging version content. This PR extracts the same code logic to helper funciton and enables DRY principleWhat kind of change does this PR introduce?
refactor: helps in DRY priciple
Did you add tests for your changes?
NO
Does this PR introduce a breaking change?
NO
Use of AI
NO