Skip to content

Commit ba51dee

Browse files
author
Yuri Smirnov
committed
fix rubocop issue
1 parent 54879bd commit ba51dee

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/simplecov-html.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ def asset_inline(name)
110110
".css" => "text/css",
111111
}[File.extname(name)]
112112

113-
base64_content = Base64.strict_encode64 File.open(path).read
113+
base64_content = Base64.strict_encode64 File.read(path)
114114
"data:#{content_type};base64,#{base64_content}"
115115
end
116116

0 commit comments

Comments
 (0)