Skip to content

Commit

Permalink
Fixing lint.
Browse files Browse the repository at this point in the history
  • Loading branch information
blockiosaurus committed Aug 24, 2024
1 parent 37ab397 commit 5712707
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ pub fn remove_member(ctx: Context<RemoveMember>) -> Result<()> {
assert_owned_by(&fanout.to_account_info(), &crate::ID)?;
assert_owned_by(&member_voucher.to_account_info(), &crate::ID)?;
update_fanout_for_remove(fanout)?;
if assert_owned_by(&ctx.accounts.destination, &anchor_lang::solana_program::system_program::id()).is_err() {
if assert_owned_by(
&ctx.accounts.destination,
&anchor_lang::solana_program::system_program::id(),
)
.is_err()
{
return Err(HydraError::InvalidCloseAccountDestination.into());
}
if fanout.membership_model != MembershipModel::NFT
Expand Down

0 comments on commit 5712707

Please sign in to comment.