Skip to content

Commit

Permalink
lints
Browse files Browse the repository at this point in the history
  • Loading branch information
uint committed Jan 27, 2022
1 parent 6895026 commit f6269bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracts/tgrade-valset/src/contract.rs
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ fn end_block(deps: DepsMut, env: Env) -> Result<Response, ContractError> {
for op in ops {
let active = validators.iter().any(|val| val.operator == op);
operators().update::<_, StdError>(deps.storage, &op, |op| {
let mut op = op.ok_or(StdError::generic_err("operator doesn't exist"))?;
let mut op = op.ok_or_else(|| StdError::generic_err("operator doesn't exist"))?;
op.active_validator = active;
Ok(op)
})?;
Expand Down

0 comments on commit f6269bd

Please sign in to comment.