Permalink
Browse files

Delete things when done

  • Loading branch information...
1 parent 89aaf41 commit d9cf1e5b7015f01ca5209333b80368ea26de0027 Jeff Rafter committed May 25, 2009
Showing with 1 addition and 2 deletions.
  1. +1 −2 app/servers/remote_server.rb
@@ -58,8 +58,7 @@ def send
return unless filename
filename = File.expand_path(filename).gsub(/\//, "\\")
message = YAML.load_file(filename)
- Lokii::Logger.debug "Nothing to send for message #{filename}" and return unless message
say message["text"], message["number"]
- File.rm(filename)
+ File.delete(filename)
end
end

0 comments on commit d9cf1e5

Please sign in to comment.