Skip to content

Commit

Permalink
linter
Browse files Browse the repository at this point in the history
  • Loading branch information
cavemanloverboy committed Jun 4, 2024
1 parent e0e575f commit e72932d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions programs/marginfi/src/state/marginfi_account.rs
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ impl<'a, 'b> RiskEngine<'a, 'b> {
let is_in_good_health = total_weighted_assets >= total_weighted_liabilities;

if is_in_good_health {
return Ok(());
Ok(())
} else {
// If account is not in good health, did it's health improve during flashloan?
let start_flashloan_health = marginfi_account.get_start_flashloan_health();
Expand All @@ -504,7 +504,7 @@ impl<'a, 'b> RiskEngine<'a, 'b> {
return err!(MarginfiError::BadAccountHealth);
}

return Ok(());
Ok(())
}
}

Expand Down

0 comments on commit e72932d

Please sign in to comment.