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

Commit bd360fa

Browse files
committed
Apply clippy suggestion
1 parent 2e339fc commit bd360fa

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
@@ -394,11 +394,12 @@ impl Accounts {
394394
}
395395

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

404405
if account.executable() {

0 commit comments

Comments
 (0)