Skip to content

Commit

Permalink
remove now unnecessary code lines
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBreuer committed Sep 13, 2024
1 parent 2d7d2b0 commit 562986e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/packages.jl
Original file line number Diff line number Diff line change
Expand Up @@ -272,12 +272,8 @@ function install(spec::String, version::String = "";
# The package is not yet loaded but may be available.
# If an available version has the required version number
# then nothing is to do.
for inforec in getproperty(info, spec)
if version == string(getproperty(inforec, :Version))
res = Globals.TestPackageAvailability(GapObj(spec), GapObj(version))
res !== Globals.fail && return true
end
end
res = Globals.TestPackageAvailability(GapObj(spec), GapObj(version))
res !== Globals.fail && return true
end
res = Globals.InstallPackage(GapObj(spec), GapObj(version), interactive; debug)
end
Expand Down

0 comments on commit 562986e

Please sign in to comment.