Remove useless parentheses on new() call

This commit is contained in:
Bertocq
2017-09-25 22:51:07 +02:00
parent 71b57ffc67
commit 91fcea03b1
2 changed files with 1 additions and 7 deletions

View File

@@ -527,12 +527,6 @@ Style/Lambda:
- 'app/models/vote.rb' - 'app/models/vote.rb'
- 'lib/graph_ql/api_types_creator.rb' - 'lib/graph_ql/api_types_creator.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/MethodCallWithoutArgsParentheses:
Exclude:
- 'app/controllers/management/document_verifications_controller.rb'
# Offense count: 1 # Offense count: 1
Style/MultilineBlockChain: Style/MultilineBlockChain:
Exclude: Exclude:

View File

@@ -4,7 +4,7 @@ class Management::DocumentVerificationsController < Management::BaseController
before_action :set_document, only: :check before_action :set_document, only: :check
def index def index
@document_verification = Verification::Management::Document.new() @document_verification = Verification::Management::Document.new
end end
def check def check