Commit 9869c480 authored by Zeger-Jan van de Weg's avatar Zeger-Jan van de Weg

Remove unneeded nil checks

The library we're using, default_value_for, is configured to interpret nil
as the default value, being ENABLED. Given the property can't be nil
this check is unneeded.
parent 6eeff67c
Pipeline #4964962 passed with stages
in 54 minutes and 51 seconds
......@@ -49,20 +49,14 @@ class ProjectFeature < ActiveRecord::Base
def builds_enabled?
return true unless builds_access_level
builds_access_level > DISABLED
def wiki_enabled?
return true unless wiki_access_level
wiki_access_level > DISABLED
def merge_requests_enabled?
return true unless merge_requests_access_level
merge_requests_access_level > DISABLED
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