Skip to content

Commit

Permalink
v1.16: Fix - Superfluous if condition for overwriting `environments…
Browse files Browse the repository at this point in the history
…` in feature activation code (backport of #33138) (#33142)

Fix - Superfluous `if` condition for overwriting `environments` in feature activation code (#33138)

Removes the `if` block around the overwriting of the `environments`.

(cherry picked from commit e954220)

Co-authored-by: Alexander Meißner <[email protected]>
  • Loading branch information
mergify[bot] and Lichtso authored Sep 5, 2023
1 parent 0c211bd commit fb29e1c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions runtime/src/bank.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7416,12 +7416,8 @@ impl Bank {
)
.unwrap();
let mut loaded_programs_cache = self.loaded_programs_cache.write().unwrap();
if *loaded_programs_cache.program_runtime_environment_v1
!= program_runtime_environment_v1
{
loaded_programs_cache.program_runtime_environment_v1 =
Arc::new(program_runtime_environment_v1);
}
loaded_programs_cache.program_runtime_environment_v1 =
Arc::new(program_runtime_environment_v1);
loaded_programs_cache.prune_feature_set_transition();
}
for builtin in BUILTINS.iter() {
Expand Down

0 comments on commit fb29e1c

Please sign in to comment.