[orca] Merge two ifs to reduce unnecessary condition check
- From: Joanmarie Diggs <joanied src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [orca] Merge two ifs to reduce unnecessary condition check
- Date: Mon, 25 Jul 2022 08:22:06 +0000 (UTC)
commit 3b5d353137a1d406c9f176f676ea9bab8ce04668
Author: Fushan Wen <qydwhotmail gmail com>
Date: Sat Jul 23 21:04:45 2022 +0800
Merge two ifs to reduce unnecessary condition check
src/orca/event_manager.py | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/src/orca/event_manager.py b/src/orca/event_manager.py
index 6a45d949c..59f23032c 100644
--- a/src/orca/event_manager.py
+++ b/src/orca/event_manager.py
@@ -770,9 +770,8 @@ class EventManager:
if not script:
script = self._getScriptForEvent(event)
-
- if not script:
- return False, "There is no script for this event."
+ if not script:
+ return False, "There is no script for this event."
if script == orca_state.activeScript:
return False, "The script for this event is already active."
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]