Skip to content

Commit

Permalink
Correct indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoBeccar authored Jul 5, 2024
1 parent c3804e9 commit 7a0afbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/docs/detectors/17-dos-unexpected-revert-with-vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ Use instead:
```rust
pub fn add_candidate(env: Env, candidate: Address, caller: Address) -> Result<(), URError> {
let mut state = Self::get_state(env.clone());
// Require authorization from an admin set at contract initalization.
state.admin.require_auth();
// Require authorization from an admin set at contract initalization.
state.admin.require_auth();
if Self::vote_ended(env.clone()) {
return Err(URError::VoteEnded);
}
Expand Down

0 comments on commit 7a0afbc

Please sign in to comment.