Applied rubocop cop 'Style/GuardClause'.

This commit is contained in:
Thorsten Eckel 2015-07-03 17:25:02 +02:00
parent 78aacafe54
commit 9c3c2de3be

View file

@ -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)