Skip to content

Commit

Permalink
Remove nil case for delete_temporary option
Browse files Browse the repository at this point in the history
  • Loading branch information
edipox committed Aug 9, 2016
1 parent b23c2ae commit 68903f3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/pdf_generator.ex
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,8 @@ defmodule PdfGenerator do
executable, arguments, [in: "", out: :string, err: :string]
)

case Keyword.get(options, :delete_temporary) do
nil -> nil
:html -> { File.rm html_file }
if Keyword.get(options, :delete_temporary) == :html do
File.rm html_file
end

case status do
Expand Down

0 comments on commit 68903f3

Please sign in to comment.