Skip to content

Commit b7a23e0

Browse files
committed
merge changes from dev
2 parents d3ef982 + ef7d5fa commit b7a23e0

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pycyphal/dsdl/_compiler.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ def compile( # pylint: disable=redefined-builtin
191191
output_directory=output_directory,
192192
) as lockfile:
193193
if lockfile:
194-
# Generate code
195194
assert isinstance(output_directory, pathlib.Path)
196195
code_generator = nunavut.jinja.DSDLCodeGenerator(
197196
namespace=root_ns,

pycyphal/dsdl/_lockfile.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ def __exit__(
3030
self, exc_type: type[BaseException] | None, exc_val: BaseException | None, exc_tb: TracebackType | None
3131
) -> None:
3232
if self._lockfile is not None:
33-
return self.remove()
34-
return None
33+
self.remove()
3534

3635
def create(self) -> bool:
3736
"""

0 commit comments

Comments
 (0)