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)
47
47
48
48
def gist_script_tag ( gist_id , filename = nil )
49
49
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?
51
51
"<script src=\" #{ url } \" > </script>"
52
52
end
53
53
@@ -74,7 +74,7 @@ def fetch_raw_code(gist_id, filename = nil)
74
74
return code_from_api ( gist_id , filename ) if ENV [ "JEKYLL_GITHUB_TOKEN" ]
75
75
76
76
url = "https://gist.githubusercontent.com/#{ gist_id } /raw"
77
- url = "#{ url } /#{ filename } " unless filename . empty?
77
+ url = "#{ url } /#{ filename } " unless filename . to_s . empty?
78
78
uri = URI ( url )
79
79
Net ::HTTP . start ( uri . host , uri . port ,
80
80
use_ssl : uri . scheme == 'https' ,
You can’t perform that action at this time.
0 commit comments