Remove back-compat code that's not needed anymore
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
da8ac1635f
commit
4e58aa40b9
1 changed files with 1 additions and 5 deletions
|
@ -124,11 +124,7 @@ module ProjectsHelper
|
|||
end
|
||||
|
||||
def license_short_name(project)
|
||||
no_license_key = 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
|
||||
return 'LICENSE' if project.repository.license_key.nil?
|
||||
|
||||
license = Licensee::License.new(project.repository.license_key)
|
||||
|
||||
|
|
Loading…
Reference in a new issue