aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2015-04-16 11:04:46 +0100
committerLouise Crow <louise.crow@gmail.com>2015-04-16 11:04:46 +0100
commit6307049ffdf123db731d03b942c12dfa2077cfa2 (patch)
tree6cb6163db924266f14ffe49f3ed4c08447ee6049
parent28cd540da554cf11a3818f960512a282912667b3 (diff)
Use implicit evaluation.
-rw-r--r--lib/alaveteli_text_masker.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/alaveteli_text_masker.rb b/lib/alaveteli_text_masker.rb
index de85df7cf..520872980 100644
--- a/lib/alaveteli_text_masker.rb
+++ b/lib/alaveteli_text_masker.rb
@@ -59,7 +59,7 @@ module AlaveteliTextMasker
end
def compress_pdf(text)
- if AlaveteliConfiguration::use_ghostscript_compression == true
+ if AlaveteliConfiguration::use_ghostscript_compression
command = ["gs", "-sDEVICE=pdfwrite", "-dCompatibilityLevel=1.4", "-dPDFSETTINGS=/screen", "-dNOPAUSE", "-dQUIET", "-dBATCH", "-sOutputFile=-", "-"]
else
command = ["pdftk", "-", "output", "-", "compress"]