lib/geminabox/proxy/copier.rb in geminabox-1.4.1 vs lib/geminabox/proxy/copier.rb in geminabox-1.4.3.rc

- old
+ new

@@ -1,5 +1,6 @@ +# frozen_string_literal: true module Geminabox module Proxy class Copier < FileHandler @@ -24,10 +25,10 @@ begin if rc = remote_content File.open(proxy_path, 'w'){|f| f.write(rc) } end rescue - File.unlink(proxy_path) if File.exists?(proxy_path) + File.unlink(proxy_path) if File.exist?(proxy_path) raise $! end end end