complete_partial_program_init: remove redundant conditional (#20895)
This commit is contained in:
@ -2041,9 +2041,7 @@ fn complete_partial_program_init(
|
|||||||
elf_pubkey,
|
elf_pubkey,
|
||||||
account_data_len as u64,
|
account_data_len as u64,
|
||||||
));
|
));
|
||||||
if account.owner != *loader_id {
|
|
||||||
instructions.push(system_instruction::assign(elf_pubkey, loader_id));
|
instructions.push(system_instruction::assign(elf_pubkey, loader_id));
|
||||||
}
|
|
||||||
if account.lamports < minimum_balance {
|
if account.lamports < minimum_balance {
|
||||||
let balance = minimum_balance - account.lamports;
|
let balance = minimum_balance - account.lamports;
|
||||||
instructions.push(system_instruction::transfer(
|
instructions.push(system_instruction::transfer(
|
||||||
|
Reference in New Issue
Block a user