enable Style/MethodDefParentheses and fix parentheses

This commit is contained in:
Lin Jen-Shin 2016-03-31 21:23:33 +08:00
parent 4f5027042a
commit 0e4c2b6ec4
2 changed files with 2 additions and 2 deletions

View File

@ -322,7 +322,7 @@ Style/MethodCallParentheses:
# Checks if the method definitions have or don't have parentheses.
Style/MethodDefParentheses:
Enabled: false
Enabled: true
# Use the configured style when naming methods.
Style/MethodName:

View File

@ -101,7 +101,7 @@ module Gitlab
Project.find_with_namespace(reply_key) if reply_key
end
def extract_reply project
def extract_reply(project)
reply = ReplyParser.new(message).execute.strip
raise EmptyEmailError if reply.blank?