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 authored Mar 29, 2021
1 parent df91a35 commit c93cea6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1881,10 +1881,7 @@ function get_latest_compatible_version(ctx::Types.Context,
compat_entry_string::AbstractString)
all_registered_versions = get_all_registered_versions(ctx, uuid)
compat_spec = Pkg.Types.semver_spec(compat_entry_string)
compatible_versions = filter(
x -> x in compat_spec,
all_registered_versions,
)
compatible_versions = filter(in(compat_spec), all_registered_versions)
latest_compatible_version = maximum(compatible_versions)
return latest_compatible_version
end
Expand Down

0 comments on commit c93cea6

Please sign in to comment.