Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
d6793292
Commit
d6793292
authored
Nov 14, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'zj-remove-unneeded-checks' into 'master'
Remove unneeded nil checks See merge request !7437
parents
352d880a
9869c480
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
6 deletions
+0
-6
app/models/project_feature.rb
app/models/project_feature.rb
+0
-6
No files found.
app/models/project_feature.rb
View file @
d6793292
...
...
@@ -49,20 +49,14 @@ class ProjectFeature < ActiveRecord::Base
end
def
builds_enabled?
return
true
unless
builds_access_level
builds_access_level
>
DISABLED
end
def
wiki_enabled?
return
true
unless
wiki_access_level
wiki_access_level
>
DISABLED
end
def
merge_requests_enabled?
return
true
unless
merge_requests_access_level
merge_requests_access_level
>
DISABLED
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment