Skip to content

Commit 7305bb7

Browse files
committed
remove unnecessary error map
1 parent 4eba379 commit 7305bb7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

programs/drift/src/instructions/keeper.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,8 +1104,7 @@ pub fn handle_settle_pnl<'c: 'info, 'info>(
11041104
&mut oracle_map,
11051105
state,
11061106
&clock,
1107-
)
1108-
.map(|_| ErrorCode::InvalidOracleForSettlePnl)?;
1107+
)?;
11091108

11101109
controller::pnl::settle_pnl(
11111110
market_index,
@@ -1219,8 +1218,7 @@ pub fn handle_settle_multiple_pnls<'c: 'info, 'info>(
12191218
&mut oracle_map,
12201219
state,
12211220
&clock,
1222-
)
1223-
.map(|_| ErrorCode::InvalidOracleForSettlePnl)?;
1221+
)?;
12241222

12251223
controller::pnl::settle_pnl(
12261224
*market_index,

0 commit comments

Comments
 (0)