From 69aeda7ceb47fd54461d5fe35c8255dfd5506664 Mon Sep 17 00:00:00 2001 From: aboutqx <1004945442@qq.com> Date: Mon, 31 Oct 2016 15:55:00 +0800 Subject: [PATCH] Update processor.rb --- lib/paperclip/processor.rb | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/lib/paperclip/processor.rb b/lib/paperclip/processor.rb index 1296b6b7b..c50b3670f 100644 --- a/lib/paperclip/processor.rb +++ b/lib/paperclip/processor.rb @@ -37,21 +37,13 @@ def self.make file, options = {}, attachment = nil # The convert method runs the convert binary with the provided arguments. # See Paperclip.run for the available options. def convert(arguments = "", local_options = {}) - if Gem.win_platform? - Paperclip.run("magick convert", arguments, local_options) - else - Paperclip.run("convert", arguments, local_options) - end + Paperclip.run(Gem.win_platform?"magick convert":"convert", arguments, local_options) end # The identify method runs the identify binary with the provided arguments. # See Paperclip.run for the available options. def identify(arguments = "", local_options = {}) - if Gem.win_platform? - Paperclip.run("magick identify", arguments, local_options) - else - Paperclip.run("identify", arguments, local_options) - end + Paperclip.run(Gem.win_platform?"magick identify":"identify", arguments, local_options) end end end