Commit d6793292 authored by Robert Speicher's avatar Robert Speicher

Merge branch 'zj-remove-unneeded-checks' into 'master'

Remove unneeded nil checks

See merge request !7437
parents 352d880a 9869c480
...@@ -49,20 +49,14 @@ class ProjectFeature < ActiveRecord::Base ...@@ -49,20 +49,14 @@ class ProjectFeature < ActiveRecord::Base
end end
def builds_enabled? def builds_enabled?
return true unless builds_access_level
builds_access_level > DISABLED builds_access_level > DISABLED
end end
def wiki_enabled? def wiki_enabled?
return true unless wiki_access_level
wiki_access_level > DISABLED wiki_access_level > DISABLED
end end
def merge_requests_enabled? def merge_requests_enabled?
return true unless merge_requests_access_level
merge_requests_access_level > DISABLED merge_requests_access_level > DISABLED
end end
......
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