btcd
btcd copied to clipboard
Testcases: Fix an obvious typo / bug
This is a compile time error on newer compilers, caused testcases to fail
Change Description
The issue was that help.go testcase was failing to compile. Whoever wrote this didn't intend to utilize the first arg w as format string, as evidenced by the else branch.
Steps to Test
go test ./...
Pull Request Checklist
Testing
- [x] Your PR passes all CI checks.
- [x] Tests covering the positive and negative (error paths) are included.
- [x] Bug fixes contain tests triggering the bug to prevent regressions.
Code Style and Documentation
- [x] The change is not insubstantial. Typo fixes are not accepted to fight bot spam.
- [x] The change obeys the Code Documentation and Commenting guidelines, and lines wrap at 80.
- [x] Commits follow the Ideal Git Commit Structure.
- [x] Any new logging statements use an appropriate subsystem and logging level.
📝 Please see our Contribution Guidelines for further guidance.