Skip to content

Commit 634ac32

Browse files
committed
Code style fix
1 parent 8022b26 commit 634ac32

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

pytest_reportportal/service.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,16 +403,14 @@ def _lock(self, leaf, func):
403403
return func(leaf)
404404

405405
def _build_start_suite_rq(self, leaf):
406-
code_ref = str(leaf['item']) if leaf['type'] == LeafType.DIR \
407-
else str(leaf['item'].fspath)
406+
code_ref = str(leaf['item']) if leaf['type'] == LeafType.DIR else str(leaf['item'].fspath)
408407
payload = {
409408
'name': self._get_item_name(leaf['name']),
410409
'description': self._get_item_description(leaf['item']),
411410
'start_time': timestamp(),
412411
'item_type': 'SUITE',
413412
'code_ref': code_ref,
414-
'parent_item_id': self._lock(leaf['parent'],
415-
lambda p: p['item_id'])
413+
'parent_item_id': self._lock(leaf['parent'], lambda p: p['item_id'])
416414
}
417415
return payload
418416

0 commit comments

Comments
 (0)