Small improvement to Sessions.cleanup.

This commit is contained in:
Martin Edenhofer 2017-05-02 19:41:35 +02:00
parent 90047729d4
commit 10b11cb726

View file

@ -457,11 +457,8 @@ remove all session and spool messages
=end
def self.cleanup
Dir.foreach(@path) do |entry|
next if entry == '.'
next if entry == '..'
FileUtils.rm_rf entry
end
return true if !File.exist?(@path)
FileUtils.rm_rf @path
true
end