Skip to content

Commit 1092e77

Browse files
committed
Minor code style fix
1 parent 3719ed9 commit 1092e77

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

robotframework_reportportal/listener.py

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -235,15 +235,14 @@ def __post_skipped_keyword(self, kwd: Keyword, clean_data_remove: bool) -> None:
235235
def _post_skipped_keywords(self, to_post: Optional[Any], clean_data_remove: bool = False) -> None:
236236
if not to_post:
237237
return
238-
if isinstance(to_post, Keyword):
239-
if not to_post.posted:
240-
self._do_start_keyword(to_post)
241-
if clean_data_remove:
242-
to_post.remove_data = False
243-
log_messages = to_post.skipped_logs
244-
to_post.skipped_logs = []
245-
for log_message in log_messages:
246-
self.__post_log_message(log_message)
238+
if isinstance(to_post, Keyword) and not to_post.posted:
239+
self._do_start_keyword(to_post)
240+
if clean_data_remove:
241+
to_post.remove_data = False
242+
log_messages = to_post.skipped_logs
243+
to_post.skipped_logs = []
244+
for log_message in log_messages:
245+
self.__post_log_message(log_message)
247246
skipped_keywords = to_post.skipped_keywords
248247
if skipped_keywords:
249248
to_post.skipped_keywords = []

0 commit comments

Comments
 (0)