Skip to content

Remove redundant tmp file existence check in wallet integration test#249

Merged
tcharding merged 1 commit intorust-bitcoin:masterfrom
GideonBature:redundant-check
Jun 16, 2025
Merged

Remove redundant tmp file existence check in wallet integration test#249
tcharding merged 1 commit intorust-bitcoin:masterfrom
GideonBature:redundant-check

Conversation

@GideonBature
Copy link
Contributor

This PR removes the redundant if file_path.exists() check before deleting a temporary file.

As pointed out during review of backupwallet integration test here, the check is unnecessary.

Copy link
Member

@tcharding tcharding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 7eb3702

@tcharding tcharding merged commit f005c0f into rust-bitcoin:master Jun 16, 2025
29 checks passed
blaze-smith470pm added a commit to blaze-smith470pm/corepc that referenced this pull request Sep 26, 2025
…eck in wallet integration test

7eb37025b185462575e9d0f7961f85c0886a2caa Remove redundant tmp file existence check in wallet integration test (GideonBature)

Pull request description:

  This PR removes the redundant `if file_path.exists()` check before deleting a temporary file.

  As pointed out during review of `backupwallet` integration test [here](rust-bitcoin/corepc#247 (comment)), the check is unnecessary.

ACKs for top commit:
  tcharding:
    ACK 7eb37025b185462575e9d0f7961f85c0886a2caa

Tree-SHA512: d2731742b13fc5395d5f691e131db3008f9738117158ebb0ea2dd2782a647eaba17a5481e7d8875d139ddb1e514ea1cbd6186c7cf935f5adcb7522eee06dc40d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants