diff options
author | Louise Crow <louise.crow@gmail.com> | 2015-04-16 11:03:04 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2015-04-16 11:03:04 +0100 |
commit | f3dcc03101cb84ad26e4f9b331c6a7b53a5b5d5d (patch) | |
tree | 976728aab54be5e5ff76032ae758beb20bdf9f4f | |
parent | 38b519cb18f1dd9edf585f63b94c5b012949d71c (diff) |
Clean up unneeded local variable.
-rw-r--r-- | lib/alaveteli_text_masker.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/alaveteli_text_masker.rb b/lib/alaveteli_text_masker.rb index b970b9d2f..b1c6ed1ae 100644 --- a/lib/alaveteli_text_masker.rb +++ b/lib/alaveteli_text_masker.rb @@ -59,13 +59,12 @@ module AlaveteliTextMasker end def compress_pdf(censored_uncompressed_text) - recompressed_text = nil if AlaveteliConfiguration::use_ghostscript_compression == true command = ["gs", "-sDEVICE=pdfwrite", "-dCompatibilityLevel=1.4", "-dPDFSETTINGS=/screen", "-dNOPAUSE", "-dQUIET", "-dBATCH", "-sOutputFile=-", "-"] else command = ["pdftk", "-", "output", "-", "compress"] end - recompressed_text = AlaveteliExternalCommand.run(*(command + [{:stdin_string=>censored_uncompressed_text}])) + AlaveteliExternalCommand.run(*(command + [{:stdin_string=>censored_uncompressed_text}])) end # Replace text in place |