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
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
013bccbd
Commit
013bccbd
authored
8 years ago
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable Style/DefWithParentheses cop and fix single offense
parent
bc806831
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
.rubocop.yml
.rubocop.yml
+1
-1
lib/api/helpers.rb
lib/api/helpers.rb
+1
-1
No files found.
.rubocop.yml
View file @
013bccbd
...
...
@@ -152,7 +152,7 @@ Style/ConstantName:
# Use def with parentheses when there are arguments.
Style/DefWithParentheses
:
Enabled
:
fals
e
Enabled
:
tru
e
# Checks for use of deprecated Hash methods.
Style/DeprecatedHashMethods
:
...
...
This diff is collapsed.
Click to expand it.
lib/api/helpers.rb
View file @
013bccbd
...
...
@@ -29,7 +29,7 @@ module API
@current_user
end
def
sudo_identifier
()
def
sudo_identifier
identifier
||=
params
[
SUDO_PARAM
]
||
env
[
SUDO_HEADER
]
# Regex for integers
...
...
This diff is collapsed.
Click to expand it.
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