Skip to content

sui_v1.37.0_1729820309_ci

@tx-tomcat tx-tomcat tagged this 24 Oct 22:53
# Description
Detects empty `else` branches in conditional structures, suggesting
their removal for cleaner code.
Aims to flag potentially unnecessary or unimplemented placeholders
within `if-else` statements.
Encourages code clarity and maintainability by eliminating redundant
branches.

# Run the linter
```
cargo test move_check_testsuit
```

# Testing
File testing: needless_else.move

## Release notes

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:

---------

Co-authored-by: jamedzung <dung.dinhnguyen@digitalavenues.com>
Co-authored-by: Todd Nowacki <tmn@mystenlabs.com>
Assets 2
Loading