cmd/deps: repair dot_code

This commit is contained in:
hyuraku 2022-03-19 16:21:01 +09:00
parent 91701425c7
commit 0f546b0b3d

View File

@ -234,7 +234,7 @@ module Homebrew
attributes << "color = green"
end
comment = " # #{dep.tags.map(&:inspect).join(", ")}" if dep.tags.any?
" \"#{d}\" -> \"#{dep}\"#{" [#{attributes.join(", ")}]" if attributes.any?}#{comment}"
" \"#{d.name}\" -> \"#{dep}\"#{" [#{attributes.join(", ")}]" if attributes.any?}#{comment}"
end
end.flatten.join("\n")
"digraph {\n#{dot_code}\n}"