Skip to content

Commit

Permalink
unlink original after replacing file
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Feb 4, 2014
1 parent 493bba3 commit ba0ea57
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/image_optim/image_path.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def replace(src)
src.copy(temp)
temp.write(read)
temp.rename(src.to_s)
unlink
end
end

Expand Down

0 comments on commit ba0ea57

Please sign in to comment.