Skip to content

Commit c176474

Browse files
committed
A note for the code readers
1 parent 45362b4 commit c176474

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/simplecov-html.rb

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def assets_path(name)
9393

9494
def asset_inline(name)
9595
path = File.join(@public_assets_dir, name)
96+
# Equivalent to `Base64.strict_encode64(File.read(path))` but without depending on Base64
9697
base64_content = [File.read(path)].pack("m0")
9798

9899
content_type = CONTENT_TYPES[File.extname(name)]

0 commit comments

Comments
 (0)