diff --git a/tools/json_tools/util.py b/tools/json_tools/util.py index 129a1032e2378..db5b063e30f29 100755 --- a/tools/json_tools/util.py +++ b/tools/json_tools/util.py @@ -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("]")