From 7b907fe0e889a8a2440c239f13efaf416ab00eb2 Mon Sep 17 00:00:00 2001 From: Rafal Czajkowski Date: Fri, 8 Dec 2023 16:40:37 +0100 Subject: [PATCH] Simplify overridden `deposit` fn There is no need to assign value from `super.deposit` to the new variable. We can return directly. --- core/contracts/Acre.sol | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/contracts/Acre.sol b/core/contracts/Acre.sol index c438bcf3c..3ee03a7aa 100644 --- a/core/contracts/Acre.sol +++ b/core/contracts/Acre.sol @@ -89,9 +89,7 @@ contract Acre is ERC4626, Ownable { "Amount is less than minimum" ); - uint256 shares = super.deposit(assets, receiver); - - return shares; + return super.deposit(assets, receiver); } function mint(