rubocop updates

This commit is contained in:
Priit Tark 2015-06-25 17:51:49 +03:00
parent e289366734
commit 168df25aeb
3 changed files with 5 additions and 3 deletions

View file

@ -8,8 +8,8 @@ class Registrant::DomainDeleteConfirmsController < RegistrantController
@domain = nil unless @domain.registrant_delete_confirmable?(params[:token])
end
# # rubocop: disable Metrics/PerceivedComplexity
# # rubocop: disable Metrics/CyclomaticComplexity
# rubocop: disable Metrics/PerceivedComplexity
# rubocop: disable Metrics/CyclomaticComplexity
def update
@domain = Domain.find(params[:id])
unless @domain.registrant_delete_confirmable?(params[:token])

View file

@ -408,7 +408,7 @@ class Epp::Domain < Domain
)
end
def epp_destroy(frame, user_id, verify=true)
def epp_destroy(frame, user_id, verify = true)
return false unless valid?
if verify && frame.css('delete').attr('verified').to_s.downcase != 'yes'

View file

@ -1,3 +1,4 @@
# rubocop: disable Style/SymbolProc
namespace :import do
# README
#
@ -712,3 +713,4 @@ namespace :import do
puts "-----> Imported EIS domains in #{(Time.zone.now.to_f - start).round(2)} seconds"
end
end
# rubocop: enable Style/SymbolProc