Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: David Varela <00.varela.david@gmail.com>
  • Loading branch information
DilumAluthge and 00vareladavid committed Mar 30, 2021
1 parent d8dfbda commit 9406d86
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1802,20 +1802,7 @@ function check_force_latest_compatible_version(ctx::Types.Context;
allow_earlier_backwards_compatible_versions::Bool = true)
direct_deps = load_direct_deps(ctx.env)
direct_deps_uuids = [dep.uuid for dep in direct_deps]
nonstdlib_direct_deps_uuids = filter(!is_stdlib, direct_deps_uuids)
result = check_force_latest_compatible_version(
ctx,
nonstdlib_direct_deps_uuids;
target_name,
allow_earlier_backwards_compatible_versions,
)
return result
end

function check_force_latest_compatible_version(ctx::Types.Context,
uuid_list::AbstractVector{Base.UUID};
target_name = nothing,
allow_earlier_backwards_compatible_versions::Bool = true)
uuid_list = filter(!is_stdlib, direct_deps_uuids)
isempty(uuid_list) && return true
results = check_force_latest_compatible_version.(
Ref(ctx),
Expand Down

0 comments on commit 9406d86

Please sign in to comment.