Applied rubocop cop 'Style/GuardClause'.
This commit is contained in:
parent
78aacafe54
commit
9c3c2de3be
1 changed files with 2 additions and 4 deletions
|
@ -261,11 +261,9 @@ returns
|
|||
end
|
||||
|
||||
# delete login caches
|
||||
if self[:login]
|
||||
key = "#{self.class}::#{login}"
|
||||
Cache.delete(key)
|
||||
end
|
||||
return if !self[:login]
|
||||
|
||||
Cache.delete("#{self.class}::#{login}")
|
||||
end
|
||||
|
||||
def self.cache_set(data_id, data)
|
||||
|
|
Loading…
Reference in a new issue