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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
013bccbd
Commit
013bccbd
authored
May 23, 2016
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
Show 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:
...
@@ -152,7 +152,7 @@ Style/ConstantName:
# Use def with parentheses when there are arguments.
# Use def with parentheses when there are arguments.
Style/DefWithParentheses
:
Style/DefWithParentheses
:
Enabled
:
fals
e
Enabled
:
tru
e
# Checks for use of deprecated Hash methods.
# Checks for use of deprecated Hash methods.
Style/DeprecatedHashMethods
:
Style/DeprecatedHashMethods
:
...
...
lib/api/helpers.rb
View file @
013bccbd
...
@@ -29,7 +29,7 @@ module API
...
@@ -29,7 +29,7 @@ module API
@current_user
@current_user
end
end
def
sudo_identifier
()
def
sudo_identifier
identifier
||=
params
[
SUDO_PARAM
]
||
env
[
SUDO_HEADER
]
identifier
||=
params
[
SUDO_PARAM
]
||
env
[
SUDO_HEADER
]
# Regex for integers
# Regex for integers
...
...
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