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
end
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?
enable_lfs
end
def repository_storage_path
......
......@@ -84,7 +84,7 @@
.form-group
.checkbox
= 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
%br
%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