Skip to content

Commit

Permalink
Fixed fetch_if_not_present.
Browse files Browse the repository at this point in the history
  • Loading branch information
adamharrison committed Nov 30, 2023
1 parent 7328ad9 commit dba2314
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lpm.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1144,7 +1144,7 @@ function Repository:generate_manifest(repo_id)
end

function Repository:fetch_if_not_present()
if system.stat(self.local_path) then return end
if system.stat(self.local_path) then return self end
return self:fetch()
end

Expand Down

0 comments on commit dba2314

Please sign in to comment.