Skip to content

Commit

Permalink
Fix pylint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Burmak committed Nov 29, 2024
1 parent 2871726 commit 3e41c51
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ch_tools/monrun_checks/ch_orphaned_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,12 @@ def _get_orphaned_objects_state(
ctx: click.Context, state_local: bool, state_zk_path: str
) -> "OrphanedObjectsState":
if state_local:
state = _local_get_orphaned_objects_state()
return _local_get_orphaned_objects_state()

if state_zk_path:
state = _zk_get_orphaned_objects_state(ctx, state_zk_path)
return _zk_get_orphaned_objects_state(ctx, state_zk_path)

if state is None:
raise FileNotFoundError()

return state
raise FileNotFoundError()


def _local_get_orphaned_objects_state() -> "OrphanedObjectsState":
Expand Down

0 comments on commit 3e41c51

Please sign in to comment.