Skip to content

Commit

Permalink
Small refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
DilumAluthge authored Mar 30, 2021
1 parent 81fbbb2 commit eff2906
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1826,10 +1826,11 @@ function set_force_latest_compatible_version!(ctx::Types.Context,
)
earliest_backwards_compatible_version = get_earliest_backwards_compatible_version(latest_compatible_version)
if allow_earlier_backwards_compatible_versions
new_compat_entry_string = "^$(earliest_backwards_compatible_version)"
version_to_use_for_compat = earliest_backwards_compatible_version
else
new_compat_entry_string = "^$(latest_compatible_version)"
version_to_use_for_compat = latest_compatible_version
end
new_compat_entry_string = "^$(version_to_use_for_compat)"
ctx.env.project.compat[dep_name] = new_compat_entry_string
else
if dep_name != target_name
Expand Down

0 comments on commit eff2906

Please sign in to comment.