Changed if to unless.
This commit is contained in:
@@ -47,7 +47,7 @@ class CacheFileStore
|
|||||||
|
|
||||||
def clean
|
def clean
|
||||||
Dir[File.join(@storage_path, '*')].each do |f|
|
Dir[File.join(@storage_path, '*')].each do |f|
|
||||||
File.delete(f) if !File.symlink?(f)
|
File.delete(f) unless File.symlink?(f)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user