Skip to content

Commit

Permalink
Merge pull request thoughtbot#1337 from bricker/master
Browse files Browse the repository at this point in the history
Fix inconsistent spacing
  • Loading branch information
Jon Yurek committed Sep 27, 2013
2 parents 7bf50e1 + 4b11a66 commit 2f404c9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/paperclip/attachment.rb
Expand Up @@ -476,10 +476,10 @@ def flush_errors #:nodoc:

# called by storage after the writes are flushed and before @queued_for_writes is cleared
def after_flush_writes
@queued_for_write.each do |style, file|
file.close unless file.closed?
file.unlink if file.respond_to?(:unlink) && file.path.present? && File.exist?(file.path)
end
@queued_for_write.each do |style, file|
file.close unless file.closed?
file.unlink if file.respond_to?(:unlink) && file.path.present? && File.exist?(file.path)
end
end

# You can either specifiy :restricted_characters or you can define your own
Expand Down

0 comments on commit 2f404c9

Please sign in to comment.