Skip to content

Commit

Permalink
Use is for None check
Browse files Browse the repository at this point in the history
since it is faster and safer according to Snyk
  • Loading branch information
tsundvoll committed Dec 11, 2024
1 parent 2c1e332 commit 796ffee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/isar/state_machine/state_machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
from robot_interface.models.initialize.initialize_params import InitializeParams
from robot_interface.models.mission.mission import Mission
from robot_interface.models.mission.status import MissionStatus, RobotStatus, TaskStatus
from robot_interface.models.mission.task import TASKS, Task
from robot_interface.models.mission.task import TASKS
from robot_interface.robot_interface import RobotInterface
from robot_interface.telemetry.mqtt_client import MqttClientInterface
from robot_interface.utilities.json_service import EnhancedJSONEncoder
Expand Down Expand Up @@ -324,7 +324,7 @@ def _mission_started(self) -> None:
self.current_mission.status = MissionStatus.InProgress
self.publish_mission_status()
self.current_task = self.task_selector.next_task()
if self.current_task == None:
if self.current_task is None:
self._mission_finished()
else:
self.current_task.status = TaskStatus.InProgress
Expand Down

0 comments on commit 796ffee

Please sign in to comment.