Skip to content

Commit 88cc422

Browse files
Fixing SonarQube issue
1 parent 01e5186 commit 88cc422

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/appointments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ def book_post_investigation_appointment(
168168
current_time = f"{hour:02d}:{minute:02d}"
169169
book_appointments_page.enter_appointment_start_time(current_time)
170170
dialog_message = book_appointments_page.click_save_button_and_return_message()
171-
if dialog_message is None or overlap_message not in dialog_message:
171+
if not dialog_message or overlap_message not in dialog_message:
172172
# Success or no overlap dialog
173173
break
174174
# Increase time by 15 minutes

0 commit comments

Comments
 (0)