Skip to content

Commit

Permalink
Remove redundant if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
chetanyagoyal authored Nov 11, 2023
1 parent 889a4aa commit 2f64d4c
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/scripts/parse_rpt.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@
dir_path = r'flow/reports'
lib = os.listdir(dir_path)

if (len(sys.argv) > 1) and (sys.argv[1] == str(lib[0])):
drc_filename = "flow/reports/" + sys.argv[1] + "/cryo/6_final_drc.rpt"
lvs_filename = "flow/reports/" + sys.argv[1] + "/cryo/6_final_lvs.rpt"
elif (len(sys.argv) == 1) or (sys.argv[1] == "sky130hvl_ldo"):
if (len(sys.argv) == 1) or (sys.argv[1] == "sky130hvl_ldo"):
drc_filename = "work/6_final_drc.rpt"
lvs_filename = "work/6_final_lvs.rpt"
else:
Expand Down Expand Up @@ -59,4 +56,4 @@
if check_gen_files(json_filename, (len(sys.argv) == 1)):
print("Flow check is clean!")
else:
print("Flow check failed!")
print("Flow check failed!")

0 comments on commit 2f64d4c

Please sign in to comment.