Skip to content

Commit

Permalink
Use walrus operator to improve readability
Browse files Browse the repository at this point in the history
  • Loading branch information
tmadlener committed Dec 2, 2024
1 parent 93eabf1 commit a46b903
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ version and build that automatically. This behavior is controlled via the
`USE_EXTERNAL_CATCH2` cmake variable. It defaults to `AUTO` but can also be set
to `ON` or `OFF` to fully control the desired behavior.

### Python > 3.6
### Python >= 3.8

Check your Python version by doing:

Expand Down
4 changes: 2 additions & 2 deletions python/podio_gen/cpp_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ def post_process(self, datamodel):
self._prepare_iorules()
self._create_selection_xml()

if datamodel["links"]:
self._write_links_registration_file(datamodel["links"])
if the_links := datamodel["links"]:
self._write_links_registration_file(the_links)
self._write_all_collections_header()
self._write_cmake_lists_file()

Expand Down

0 comments on commit a46b903

Please sign in to comment.