File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ def determine_arguments(input)
4747
4848 def gist_script_tag ( gist_id , filename = nil )
4949 url = "https://gist.github.com/#{ gist_id } .js"
50- url = "#{ url } ?file=#{ filename } " unless filename . empty?
50+ url = "#{ url } ?file=#{ filename } " unless filename . to_s . empty?
5151 "<script src=\" #{ url } \" > </script>"
5252 end
5353
@@ -74,7 +74,7 @@ def fetch_raw_code(gist_id, filename = nil)
7474 return code_from_api ( gist_id , filename ) if ENV [ "JEKYLL_GITHUB_TOKEN" ]
7575
7676 url = "https://gist.githubusercontent.com/#{ gist_id } /raw"
77- url = "#{ url } /#{ filename } " unless filename . empty?
77+ url = "#{ url } /#{ filename } " unless filename . to_s . empty?
7878 uri = URI ( url )
7979 Net ::HTTP . start ( uri . host , uri . port ,
8080 use_ssl : uri . scheme == 'https' ,
You can’t perform that action at this time.
0 commit comments