Skip to content

Commit

Permalink
fix: remove unused return value. (OZ N-10)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoonBoi9001 committed Sep 18, 2024
1 parent 4387c6c commit 9dfb8b0
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ abstract contract AllocationManager is EIP712Upgradeable, GraphDirectory, Alloca
*
* @param _allocationId The id of the allocation to be closed
*/
function _closeAllocation(address _allocationId) internal returns (Allocation.State memory) {
function _closeAllocation(address _allocationId) internal {
Allocation.State memory allocation = allocations.get(_allocationId);

// Take rewards snapshot to prevent other allos from counting tokens from this allo
Expand All @@ -414,7 +414,6 @@ abstract contract AllocationManager is EIP712Upgradeable, GraphDirectory, Alloca
allocation.tokens;

emit AllocationClosed(allocation.indexer, _allocationId, allocation.subgraphDeploymentId, allocation.tokens);
return allocations[_allocationId];
}

/**
Expand Down

0 comments on commit 9dfb8b0

Please sign in to comment.