Sponsored Content
Skip to content

refactor: Remove dead code in CreateOffer - #6541

Merged
bthomee merged 1 commit into
developfrom
mvadari/createoffer-redundant
Mar 12, 2026
Merged

refactor: Remove dead code in CreateOffer#6541
bthomee merged 1 commit into
developfrom
mvadari/createoffer-redundant

Conversation

@mvadari

@mvadari mvadari commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

High Level Overview of Change

Removed redundant check for account creating an offer for a token it issues.

Context of Change

AI code review spotted the dead code

API Impact

N/A

Removed redundant check for account creating trustline to itself.
@mvadari mvadari added the Trivial Simple change with minimal effect, or already tested. Only needs one approval. label Mar 12, 2026
@mvadari mvadari changed the title refactor: remove dead code in CreateOffer refactor: Remove dead code in CreateOffer Mar 12, 2026
@mvadari mvadari added the Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. label Mar 12, 2026
@codecov

codecov Bot commented Mar 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.8%. Comparing base (2b14ee3) to head (e93b364).
⚠️ Report is 53 commits behind head on develop.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##           develop   #6541     +/-   ##
=========================================
- Coverage     79.8%   79.8%   -0.0%     
=========================================
  Files          878     878             
  Lines        67889   67887      -2     
  Branches      7551    7555      +4     
=========================================
- Hits         54206   54195     -11     
- Misses       13683   13692      +9     
Files with missing lines Coverage Δ
src/libxrpl/tx/transactors/dex/CreateOffer.cpp 93.8% <ø> (+0.2%) ⬆️

... and 4 files with indirect coverage changes

Impacted file tree graph

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@bthomee
bthomee merged commit 7dd3e0b into develop Mar 12, 2026
3 checks passed
@bthomee
bthomee deleted the mvadari/createoffer-redundant branch March 12, 2026 21:03
@mvadari mvadari added the AI Triage Bugs and fixes that have been triaged via AI initiatives label Mar 24, 2026
@mvadari mvadari added this to the 3.2.0 milestone May 20, 2026
beartec-jpg pushed a commit to beartec-jpg/FalconLedger that referenced this pull request Jun 1, 2026
Removed redundant check for account creating trustline to itself.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI Triage Bugs and fixes that have been triaged via AI initiatives Ready to merge *PR author* thinks it's ready to merge. Has passed code review. Perf sign-off may still be required. Trivial Simple change with minimal effect, or already tested. Only needs one approval.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants