Skip to content

Commit fec1a47

Browse files
committed
👮 Lint/UselessConstantScoping
Useless private access modifier for constant scope.
1 parent 9359040 commit fec1a47

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

lib/simplecov-html.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
module SimpleCov
1717
module Formatter
1818
class HTMLFormatter
19+
# Only have a few content types, just hardcode them
20+
CONTENT_TYPES = {
21+
".js" => "text/javascript",
22+
".png" => "image/png",
23+
".gif" => "image/gif",
24+
".css" => "text/css",
25+
}.freeze
26+
1927
def initialize
2028
@branchable_result = SimpleCov.branch_coverage?
2129
@templates = {}
@@ -83,14 +91,6 @@ def assets_path(name)
8391
File.join("./assets", SimpleCov::Formatter::HTMLFormatter::VERSION, name)
8492
end
8593

86-
# Only have a few content types, just hardcode them
87-
CONTENT_TYPES = {
88-
".js" => "text/javascript",
89-
".png" => "image/png",
90-
".gif" => "image/gif",
91-
".css" => "text/css",
92-
}.freeze
93-
9494
def asset_inline(name)
9595
path = File.join(@public_assets_dir, name)
9696
# Equivalent to `Base64.strict_encode64(File.read(path))` but without depending on Base64

0 commit comments

Comments
 (0)