Skip to content

Commit

Permalink
Minor code style fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HardNorth committed Jan 9, 2025
1 parent 3719ed9 commit 1092e77
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions robotframework_reportportal/listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -235,15 +235,14 @@ def __post_skipped_keyword(self, kwd: Keyword, clean_data_remove: bool) -> None:
def _post_skipped_keywords(self, to_post: Optional[Any], clean_data_remove: bool = False) -> None:
if not to_post:
return
if isinstance(to_post, Keyword):
if not to_post.posted:
self._do_start_keyword(to_post)
if clean_data_remove:
to_post.remove_data = False
log_messages = to_post.skipped_logs
to_post.skipped_logs = []
for log_message in log_messages:
self.__post_log_message(log_message)
if isinstance(to_post, Keyword) and not to_post.posted:
self._do_start_keyword(to_post)
if clean_data_remove:
to_post.remove_data = False
log_messages = to_post.skipped_logs
to_post.skipped_logs = []
for log_message in log_messages:
self.__post_log_message(log_message)
skipped_keywords = to_post.skipped_keywords
if skipped_keywords:
to_post.skipped_keywords = []
Expand Down

0 comments on commit 1092e77

Please sign in to comment.