Skip to content

Commit e6d5c5b

Browse files
author
Seth Falcon
committed
Fix files segment in cookbook show to not highlight
1 parent 5267984 commit e6d5c5b

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

‎chef-server-webui/app/controllers/cookbooks.rb‎

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,12 @@ def cookbook_link(version)
128128

129129
def cookbook_parts
130130
Chef::CookbookVersion::COOKBOOK_SEGMENTS.map do |p|
131-
case p
131+
part = p.to_s
132+
case part
132133
when "files"
133-
[p.to_s, "plain"]
134+
[part, "plain"]
134135
else
135-
[p.to_s, "ruby"]
136+
[part, "ruby"]
136137
end
137138
end.sort { |a, b| a[0] <=> b[0] }
138139
end

0 commit comments

Comments
 (0)