Skip to content

Commit

Permalink
Remove unnecessary paranoia
Browse files Browse the repository at this point in the history
  • Loading branch information
cdwort committed Jul 12, 2015
1 parent 80c7ed0 commit 57b1da6
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/pdfkit/source.rb
Expand Up @@ -35,12 +35,10 @@ def to_s
private

def shell_safe_url
return unless url?
url_needs_escaping? ? URI::escape(@source) : @source
end

def url_needs_escaping?
return unless url?
URI::decode(@source) == @source
end
end
Expand Down

0 comments on commit 57b1da6

Please sign in to comment.