Skip to content

Commit

Permalink
Fixed checks
Browse files Browse the repository at this point in the history
  • Loading branch information
tomuben committed Jan 24, 2025
1 parent 8b21c2b commit 24d58e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,9 @@ def __init__(self, *args, **kwargs) -> None:
self._release_task_future: Optional[AbstractTaskFuture] = None
super().__init__(*args, **kwargs)

if self.export_path is None:
if self.export_path is not None:
assert isinstance(self.export_path, str)
if self.release_name is None:
if self.release_name is not None:
assert isinstance(self.release_name, str)
assert isinstance(self.release_goal, str)

Expand Down
8 changes: 4 additions & 4 deletions exasol/slc/internal/tasks/export/export_containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,9 @@ def __init__(self, *args, **kwargs) -> None:
assert all(isinstance(x, str) for x in self.flavor_paths)
assert isinstance(self.release_goals, tuple)
assert all(isinstance(x, str) for x in self.release_goals)
if self.release_name is None:
if self.release_name is not None:
assert isinstance(self.release_name, str)
if self.export_path is None:
if self.export_path is not None:
assert isinstance(self.export_path, str)

def register_required(self) -> None:
Expand Down Expand Up @@ -107,9 +107,9 @@ def __init__(self, *args, **kwargs) -> None:
assert isinstance(self.flavor_path, str)
assert isinstance(self.release_goals, tuple)
assert all(isinstance(x, str) for x in self.release_goals)
if self.release_name is None:
if self.release_name is not None:
assert isinstance(self.release_name, str)
if self.export_path is None:
if self.export_path is not None:
assert isinstance(self.export_path, str)

def get_goals(self) -> Set[str]:
Expand Down

0 comments on commit 24d58e3

Please sign in to comment.