Skip to content
Snippets Groups Projects
Commit 4eff5eb8 authored by Lin Jen-Shin's avatar Lin Jen-Shin :cookie:
Browse files

Check default_artifacts_expire_in only if existed

parent a1b06a82
No related branches found
No related tags found
1 merge request!9219Artifact Expiration Defaults
......@@ -298,7 +298,8 @@ def check_repository_storages
end
def check_default_artifacts_expire_in
ChronicDuration.parse(default_artifacts_expire_in)
ChronicDuration.parse(default_artifacts_expire_in) if
default_artifacts_expire_in
true
rescue ChronicDuration::DurationParseError => e
errors.add(:default_artifacts_expire_in, ": #{e.message}")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment