Skip to content

Commit

Permalink
Remove unreachable clause
Browse files Browse the repository at this point in the history
  • Loading branch information
CriesofCarrots committed Sep 4, 2021
1 parent 0eca269 commit bb85c6b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions runtime/src/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -251,9 +251,6 @@ impl Accounts {
}

if solana_sdk::sysvar::instructions::check_id(key) {
if message.is_writable(i, demote_program_write_locks) {
return Err(TransactionError::InvalidAccountIndex);
}
Self::construct_instructions_account(
message,
feature_set
Expand Down

0 comments on commit bb85c6b

Please sign in to comment.