Read about our upcoming Code of Conduct on this issue

Commit 63a97c11 authored by Patricio Cano's avatar Patricio Cano
Browse files

Syntax and style fixes.

parent 298baacfe67b
...@@ -391,7 +391,10 @@ def cached_count ...@@ -391,7 +391,10 @@ def cached_count
end end
def lfs_enabled? def lfs_enabled?
(Gitlab.config.lfs.enabled && enable_lfs) || (enable_lfs.nil? && Gitlab.config.lfs.enabled) return false unless Gitlab.config.lfs.enabled
return Gitlab.config.lfs.enabled if enable_lfs.nil?
end end
def repository_storage_path def repository_storage_path
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
.form-group .form-group
.checkbox .checkbox
= f.label :enable_lfs do = f.label :enable_lfs do
= f.check_box :enable_lfs, checked: (true if @project.enable_lfs || @project.enable_lfs.nil?) = f.check_box :enable_lfs, checked: @project.lfs_enabled?
%strong LFS %strong LFS
%br %br
%span.descr Git Large File Storage %span.descr Git Large File Storage
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