This instance will be upgraded to Heptapod 0.31.0 (final) on 2022-05-24 at 14:00 UTC+2 (a few minutes of down time)

Unverified Commit 4e58aa40 authored by Rémy Coutable's avatar Rémy Coutable
Browse files

Remove back-compat code that's not needed anymore


Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 3759991a494a
...@@ -124,11 +124,7 @@ def user_max_access_in_project(user_id, project) ...@@ -124,11 +124,7 @@ def user_max_access_in_project(user_id, project)
end end
def license_short_name(project) def license_short_name(project)
no_license_key = project.repository.license_key.nil? || return 'LICENSE' if project.repository.license_key.nil?
# Back-compat if cache contains 'no-license', can be removed in a few weeks
project.repository.license_key == 'no-license'
return 'LICENSE' if no_license_key
license = Licensee::License.new(project.repository.license_key) license = Licensee::License.new(project.repository.license_key)
......
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