Skip to content

Commit 5cd7497

Browse files
committed
don't dup @span_for_kinds hash keys
1 parent 60afd68 commit 5cd7497

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/coderay/encoders/html.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ def style_for_kinds kinds
286286
def make_span_for_kinds method, hint
287287
# FIXME: cache attack
288288
Hash.new do |h, kinds|
289-
h[kinds.is_a?(Symbol) ? kinds : kinds.dup] = begin
289+
h[kinds] = begin
290290
css_class = css_class_for_kinds(kinds)
291291
title = HTML.token_path_to_hint hint, kinds if hint
292292

0 commit comments

Comments
 (0)