Skip to content

Remove redundant no-op call in ShopAPI#getContainer#65

Merged
MLG-SERBUR merged 1 commit into
masterfrom
codex/review-changes-in-pr-34-and-implement-useful-ones
Apr 20, 2026
Merged

Remove redundant no-op call in ShopAPI#getContainer#65
MLG-SERBUR merged 1 commit into
masterfrom
codex/review-changes-in-pr-34-and-implement-useful-ones

Conversation

@MLG-SERBUR
Copy link
Copy Markdown
Member

@MLG-SERBUR MLG-SERBUR commented Apr 20, 2026

Something that ai reverted in #64 and I forgot to re-add.

Motivation

  • Remove a no-op location.getBlock() call in ShopAPI#getContainer to clean up dead code and silence static analysis warnings.

Description

  • Deleted the redundant location.getBlock(); line and rely on location.getBlock().getState() to obtain the BlockState in getContainer(Location) with no behavioral change.

Testing

  • Ran project build and unit tests with mvn test, and the build and tests passed.

@MLG-SERBUR MLG-SERBUR merged commit 5b772e2 into master Apr 20, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant