Fix Style/EmptyCaseCondition rubocop issue

This commit is contained in:
Bertocq
2017-09-25 22:52:38 +02:00
parent 91fcea03b1
commit 43758ba830
2 changed files with 2 additions and 9 deletions

View File

@@ -480,12 +480,6 @@ Style/DoubleNegation:
Exclude: Exclude:
- 'app/models/flag.rb' - 'app/models/flag.rb'
# Offense count: 1
# Cop supports --auto-correct.
Style/EmptyCaseCondition:
Exclude:
- 'app/models/concerns/verification.rb'
# Offense count: 2 # Offense count: 2
# Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms. # Configuration parameters: ExpectMatchingDefinition, Regex, IgnoreExecutableScripts, AllowedAcronyms.
# AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS # AllowedAcronyms: CLI, DSL, ACL, API, ASCII, CPU, CSS, DNS, EOF, GUID, HTML, HTTP, HTTPS, ID, IP, JSON, LHS, QPS, RAM, RHS, RPC, SLA, SMTP, SQL, SSH, TCP, TLS, TTL, UDP, UI, UID, UUID, URI, URL, UTF8, VM, XML, XMPP, XSRF, XSS

View File

@@ -55,10 +55,9 @@ module Verification
end end
def user_type def user_type
case if level_three_verified?
when level_three_verified?
:level_3_user :level_3_user
when level_two_verified? elsif level_two_verified?
:level_2_user :level_2_user
else else
:level_1_user :level_1_user