Commit a878a2cf authored by Shinya Maeda's avatar Shinya Maeda

Fix unnecessary changes from app/services/projects/update_pages_service.rb

parent a7707891
...@@ -176,11 +176,6 @@ module Projects ...@@ -176,11 +176,6 @@ module Projects
build.erase_artifacts! unless build.has_expiring_artifacts? build.erase_artifacts! unless build.has_expiring_artifacts?
end end
def delete_artifact!
build.reload # Reload stable object to prevent erase artifacts with old state
build.erase_artifacts! unless build.has_expiring_artifacts?
end
def latest_sha def latest_sha
project.commit(build.ref).try(:sha).to_s project.commit(build.ref).try(:sha).to_s
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment