Skip to content

Commit

Permalink
change && to nested if
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanRHall committed Oct 15, 2024
1 parent 28d868e commit 9468868
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions contracts/src/v0.8/ccip/rmn/RMNRemote.sol
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,10 @@ contract RMNRemote is OwnerIsCreator, ITypeAndVersion, IRMNRemote {
}

// min signers requirement is tenable
if (newConfig.enabled && newConfig.signers.length < 2 * newConfig.f + 1) {
revert NotEnoughSigners();
if (newConfig.enabled) {
if (newConfig.signers.length < 2 * newConfig.f + 1) {
revert NotEnoughSigners();
}
}

// clear the old signers
Expand Down

0 comments on commit 9468868

Please sign in to comment.