Skip to content

Commit fd5b2fd

Browse files
committed
response body could be nil, so I removed chomp
1 parent 135ba35 commit fd5b2fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jekyll-gist/gist_tag.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def fetch_raw_code(gist_id, filename = nil)
6666
read_timeout: 3, open_timeout: 3) do |http|
6767
request = Net::HTTP::Get.new uri
6868
response = http.request(request)
69-
response.body.chomp
69+
response.body
7070
end
7171
rescue SocketError
7272
nil

0 commit comments

Comments
 (0)