# Description
- Added a lint to check for unnecessary conditionals
- Triggered when
- Each branch is a single value and the values are equal (consider
removing the conditional)
- Each branch is a single bool, and the bools are not equal (use the
condition directly)
## Testing
- New tests
## Release notes
- [ ] Protocol:
- [ ] Nodes (Validators and Full nodes):
- [ ] Indexer:
- [ ] JSON-RPC:
- [ ] GraphQL:
- [X] CLI: Move will now lint against unnecessary conditionals,
`if-else` expressions.
- [ ] Rust SDK:
---------
Co-authored-by: jamedzung <dung.dinhnguyen@digitalavenues.com>
Co-authored-by: Todd Nowacki <tmn@mystenlabs.com>