Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
trinitys7 committed Sep 5, 2024
1 parent e93f649 commit 8292d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/consumer/virtual-staking/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ impl VirtualStakingApi for VirtualStakingContract<'_> {
if max_cap.is_zero() {
let all_delegations = TokenQuerier::new(&deps.querier)
.all_delegations(env.contract.address.to_string(), config.max_retrieve)?;
if all_delegations.delegations.len() == 0 {
if all_delegations.delegations.is_empty() {
return Ok(resp.add_message(VirtualStakeMsg::DeleteAllScheduledTasks {}));
}
let mut msgs = vec![];
Expand Down

0 comments on commit 8292d43

Please sign in to comment.