Skip to content

Commit d4bf0b9

Browse files
committed
useless-semicolon: ruff check --select=E703 --fix
1 parent edb9213 commit d4bf0b9

File tree

6 files changed

+18
-18
lines changed

6 files changed

+18
-18
lines changed

mavsdk/action_server.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ async def arm_disarm(self):
567567
raise ActionServerError(result, "arm_disarm()")
568568

569569
if result.result == ActionServerResult.Result.SUCCESS:
570-
arm_disarm_stream.cancel();
570+
arm_disarm_stream.cancel()
571571
return
572572

573573

@@ -606,7 +606,7 @@ async def flight_mode_change(self):
606606
raise ActionServerError(result, "flight_mode_change()")
607607

608608
if result.result == ActionServerResult.Result.SUCCESS:
609-
flight_mode_change_stream.cancel();
609+
flight_mode_change_stream.cancel()
610610
return
611611

612612

@@ -645,7 +645,7 @@ async def takeoff(self):
645645
raise ActionServerError(result, "takeoff()")
646646

647647
if result.result == ActionServerResult.Result.SUCCESS:
648-
takeoff_stream.cancel();
648+
takeoff_stream.cancel()
649649
return
650650

651651

@@ -684,7 +684,7 @@ async def land(self):
684684
raise ActionServerError(result, "land()")
685685

686686
if result.result == ActionServerResult.Result.SUCCESS:
687-
land_stream.cancel();
687+
land_stream.cancel()
688688
return
689689

690690

@@ -723,7 +723,7 @@ async def reboot(self):
723723
raise ActionServerError(result, "reboot()")
724724

725725
if result.result == ActionServerResult.Result.SUCCESS:
726-
reboot_stream.cancel();
726+
reboot_stream.cancel()
727727
return
728728

729729

@@ -762,7 +762,7 @@ async def shutdown(self):
762762
raise ActionServerError(result, "shutdown()")
763763

764764
if result.result == ActionServerResult.Result.SUCCESS:
765-
shutdown_stream.cancel();
765+
shutdown_stream.cancel()
766766
return
767767

768768

@@ -801,7 +801,7 @@ async def terminate(self):
801801
raise ActionServerError(result, "terminate()")
802802

803803
if result.result == ActionServerResult.Result.SUCCESS:
804-
terminate_stream.cancel();
804+
terminate_stream.cancel()
805805
return
806806

807807

mavsdk/calibration.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -368,7 +368,7 @@ async def calibrate_gyro(self):
368368
raise CalibrationError(result, "calibrate_gyro()")
369369

370370
if result.result == CalibrationResult.Result.SUCCESS:
371-
calibrate_gyro_stream.cancel();
371+
calibrate_gyro_stream.cancel()
372372
return
373373

374374

@@ -408,7 +408,7 @@ async def calibrate_accelerometer(self):
408408
raise CalibrationError(result, "calibrate_accelerometer()")
409409

410410
if result.result == CalibrationResult.Result.SUCCESS:
411-
calibrate_accelerometer_stream.cancel();
411+
calibrate_accelerometer_stream.cancel()
412412
return
413413

414414

@@ -448,7 +448,7 @@ async def calibrate_magnetometer(self):
448448
raise CalibrationError(result, "calibrate_magnetometer()")
449449

450450
if result.result == CalibrationResult.Result.SUCCESS:
451-
calibrate_magnetometer_stream.cancel();
451+
calibrate_magnetometer_stream.cancel()
452452
return
453453

454454

@@ -488,7 +488,7 @@ async def calibrate_level_horizon(self):
488488
raise CalibrationError(result, "calibrate_level_horizon()")
489489

490490
if result.result == CalibrationResult.Result.SUCCESS:
491-
calibrate_level_horizon_stream.cancel();
491+
calibrate_level_horizon_stream.cancel()
492492
return
493493

494494

@@ -528,7 +528,7 @@ async def calibrate_gimbal_accelerometer(self):
528528
raise CalibrationError(result, "calibrate_gimbal_accelerometer()")
529529

530530
if result.result == CalibrationResult.Result.SUCCESS:
531-
calibrate_gimbal_accelerometer_stream.cancel();
531+
calibrate_gimbal_accelerometer_stream.cancel()
532532
return
533533

534534

mavsdk/ftp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ async def download(self, remote_file_path, local_dir, use_burst):
432432
raise FtpError(result, "download()", remote_file_path, local_dir, use_burst)
433433

434434
if result.result == FtpResult.Result.SUCCESS:
435-
download_stream.cancel();
435+
download_stream.cancel()
436436
return
437437

438438

@@ -482,7 +482,7 @@ async def upload(self, local_file_path, remote_dir):
482482
raise FtpError(result, "upload()", local_file_path, remote_dir)
483483

484484
if result.result == FtpResult.Result.SUCCESS:
485-
upload_stream.cancel();
485+
upload_stream.cancel()
486486
return
487487

488488

mavsdk/log_files.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ async def download_log_file(self, entry, path):
422422
raise LogFilesError(result, "download_log_file()", entry, path)
423423

424424
if result.result == LogFilesResult.Result.SUCCESS:
425-
download_log_file_stream.cancel();
425+
download_log_file_stream.cancel()
426426
return
427427

428428

mavsdk/mission.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ async def upload_mission_with_progress(self, mission_plan):
10541054
raise MissionError(result, "upload_mission_with_progress()", mission_plan)
10551055

10561056
if result.result == MissionResult.Result.SUCCESS:
1057-
upload_mission_with_progress_stream.cancel();
1057+
upload_mission_with_progress_stream.cancel()
10581058
return
10591059

10601060

@@ -1148,7 +1148,7 @@ async def download_mission_with_progress(self):
11481148
raise MissionError(result, "download_mission_with_progress()")
11491149

11501150
if result.result == MissionResult.Result.SUCCESS:
1151-
download_mission_with_progress_stream.cancel();
1151+
download_mission_with_progress_stream.cancel()
11521152
return
11531153

11541154

mavsdk/mission_raw_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -658,7 +658,7 @@ async def incoming_mission(self):
658658
raise MissionRawServerError(result, "incoming_mission()")
659659

660660
if result.result == MissionRawServerResult.Result.SUCCESS:
661-
incoming_mission_stream.cancel();
661+
incoming_mission_stream.cancel()
662662
return
663663

664664

0 commit comments

Comments
 (0)