Skip to content

Commit

Permalink
remove else
Browse files Browse the repository at this point in the history
  • Loading branch information
snreynolds committed Nov 30, 2023
1 parent 7755acd commit 852ed5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PoolManager.sol
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ contract PoolManager is IPoolManager, Fees, NoDelegateCall, Claims {
function _checkLocker(address caller, address locker, IHooks hook) internal pure {
if (caller == locker) return;
if (caller == address(hook) && hook.hasPermissionToAccessLock()) return;
else revert LockedBy(locker, address(hook));
revert LockedBy(locker, address(hook));
}

/// @inheritdoc IPoolManager
Expand Down

0 comments on commit 852ed5b

Please sign in to comment.