Skip to content
This repository was archived by the owner on Jan 22, 2025. It is now read-only.

Commit ead201a

Browse files
committed
Apply clippy suggestion
1 parent 1c62d87 commit ead201a

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

runtime/src/accounts.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,12 @@ impl Accounts {
393393
}
394394

395395
if bpf_loader_upgradeable::check_id(account.owner()) {
396-
if !feature_set.is_active(&simplify_writable_program_account_check::id()) {
397-
if message.is_writable(i) && !message.is_upgradeable_loader_present() {
398-
error_counters.invalid_writable_account += 1;
399-
return Err(TransactionError::InvalidWritableAccount);
400-
}
396+
if !feature_set.is_active(&simplify_writable_program_account_check::id())
397+
&& message.is_writable(i)
398+
&& !message.is_upgradeable_loader_present()
399+
{
400+
error_counters.invalid_writable_account += 1;
401+
return Err(TransactionError::InvalidWritableAccount);
401402
}
402403

403404
if account.executable() {

0 commit comments

Comments
 (0)