Fix Style/EmptyCaseCondition rubocop issue
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user