Skip to content

Commit 7641e9d

Browse files
committed
handle unused variables and function call results
1 parent cf3486c commit 7641e9d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cadence/contracts/FlowALPModels.cdc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,8 @@ access(all) contract FlowALPModels {
579579
let newDebt = self.effectiveDebtByToken
580580

581581
// Remove old entries for this token from both maps
582-
newCollateral.remove(key: tokenType)
583-
newDebt.remove(key: tokenType)
582+
let _oldCollateral = newCollateral.remove(key: tokenType)
583+
let _oldDebt = newDebt.remove(key: tokenType)
584584

585585
// Add new entry based on direction (only if non-zero)
586586
if effectiveBalance.quantity > 0.0 {

cadence/contracts/FlowALPPositionResources.cdc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ access(all) contract FlowALPPositionResources {
181181
type: Type,
182182
pushToDrawDownSink: Bool
183183
): {DeFiActions.Sink} {
184-
let pool = self.pool.borrow()!
184+
let _pool = self.pool.borrow()!
185185
return PositionSink(
186186
id: self.id,
187187
pool: self.pool,
@@ -212,7 +212,7 @@ access(all) contract FlowALPPositionResources {
212212
type: Type,
213213
pullFromTopUpSource: Bool
214214
): {DeFiActions.Source} {
215-
let pool = self.pool.borrow()!
215+
let _pool = self.pool.borrow()!
216216
return PositionSource(
217217
id: self.id,
218218
pool: self.pool,

0 commit comments

Comments
 (0)