Skip to content

sui_v1.34.0_1726201631_ci

@tx-tomcat tx-tomcat tagged this 13 Sep 01:52
# 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>
Assets 2
Loading