Skip to content

Commit

Permalink
Rewrite block with list's emptiness check (#50213)
Browse files Browse the repository at this point in the history
  • Loading branch information
AMurkin authored Aug 2, 2021
1 parent 8b336f1 commit baa7a57
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tools/json_tools/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,7 @@ def list_of_lists(self, k, lol):
self.indent_multiplier -= 1
self.buf.write("\n")
self.indented_write("]")
if lol:
self.buf.write(",\n")
else:
self.buf.write("\n")
self.buf.write(",\n" if lol else "\n")
self.indent_multiplier -= 1
self.indented_write("]")

Expand Down

0 comments on commit baa7a57

Please sign in to comment.