fix: Forge fmt was going crazy in this function

It kept changing the formatting between two states and was never happy..

Took 4 minutes
This commit is contained in:
Diana Carvalho
2025-10-16 16:56:06 +01:00
parent a82d0f2885
commit 40ea447d2d

View File

@@ -806,6 +806,7 @@ contract TychoRouter is
/** /**
* @dev Gets balance of a token for a given address. Supports both native ETH and ERC20 tokens. * @dev Gets balance of a token for a given address. Supports both native ETH and ERC20 tokens.
*/ */
// forgefmt: disable-start
function _balanceOf(address token, address owner) function _balanceOf(address token, address owner)
internal internal
view view
@@ -813,7 +814,7 @@ contract TychoRouter is
{ {
return return
token == address(0) ? owner.balance : IERC20(token).balanceOf(owner); token == address(0) ? owner.balance : IERC20(token).balanceOf(owner);
} }// forgefmt: disable-end
/** /**
* @dev Verifies that the expected amount of output tokens was received by the receiver. * @dev Verifies that the expected amount of output tokens was received by the receiver.