Fix Style/EmptyCaseCondition rubocop issue
This commit is contained in:
@@ -480,12 +480,6 @@ Style/DoubleNegation:
|
||||
Exclude:
|
||||
- 'app/models/flag.rb'
|
||||
|
||||
# Offense count: 1
|
||||
# Cop supports --auto-correct.
|
||||
Style/EmptyCaseCondition:
|
||||
Exclude:
|
||||
- 'app/models/concerns/verification.rb'
|
||||
|
||||
# Offense count: 2
|
||||
# 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
|
||||
|
||||
@@ -55,10 +55,9 @@ module Verification
|
||||
end
|
||||
|
||||
def user_type
|
||||
case
|
||||
when level_three_verified?
|
||||
if level_three_verified?
|
||||
:level_3_user
|
||||
when level_two_verified?
|
||||
elsif level_two_verified?
|
||||
:level_2_user
|
||||
else
|
||||
:level_1_user
|
||||
|
||||
Reference in New Issue
Block a user