@@ -118,8 +118,7 @@ contract StrategyManager is
118
118
IStrategy strategy ,
119
119
uint256 depositSharesToRemove
120
120
) external onlyDelegationManager nonReentrant returns (uint256 ) {
121
- (, uint256 sharesAfter ) = _removeDepositShares (staker, strategy, depositSharesToRemove);
122
- return sharesAfter;
121
+ return _removeDepositShares (staker, strategy, depositSharesToRemove);
123
122
}
124
123
125
124
/// @inheritdoc IShareManager
@@ -280,7 +279,7 @@ contract StrategyManager is
280
279
address staker ,
281
280
IStrategy strategy ,
282
281
uint256 depositSharesToRemove
283
- ) internal returns (bool , uint256 ) {
282
+ ) internal returns (uint256 ) {
284
283
// sanity checks on inputs
285
284
require (depositSharesToRemove != 0 , SharesAmountZero ());
286
285
@@ -298,12 +297,9 @@ contract StrategyManager is
298
297
// if no existing shares, remove the strategy from the staker's dynamic array of strategies
299
298
if (userDepositShares == 0 ) {
300
299
_removeStrategyFromStakerStrategyList (staker, strategy);
301
-
302
- // return true in the event that the strategy was removed from stakerStrategyList[staker]
303
- return (true , userDepositShares);
304
300
}
305
- // return false in the event that the strategy was *not* removed from stakerStrategyList[staker]
306
- return ( false , userDepositShares) ;
301
+
302
+ return userDepositShares;
307
303
}
308
304
309
305
/**
0 commit comments