Skip to content

Commit

Permalink
Fix inheritance graph output (issue introduced with #729)
Browse files Browse the repository at this point in the history
  • Loading branch information
montyly committed Jan 12, 2021
1 parent 119a024 commit d8aa31f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions slither/printers/inheritance/inheritance_graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,8 @@ def output(self, filename):
Args:
filename(string)
"""

if filename == "":
filename = "contracts.dot"
if filename == "" or filename == ".":
filename = "inheritance-graph.dot"
if not filename.endswith(".dot"):
filename += ".inheritance-graph.dot"
info = "Inheritance Graph: " + filename + "\n"
Expand Down

0 comments on commit d8aa31f

Please sign in to comment.