[chrome-gnome-shell/wip/fmuellner/remove-redundant-check] connector: Remove unnecessary None check
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chrome-gnome-shell/wip/fmuellner/remove-redundant-check] connector: Remove unnecessary None check
- Date: Wed, 1 May 2019 12:20:18 +0000 (UTC)
commit fb74601a4c9c5ced375215e4740791bae749aed4
Author: Florian Müllner <fmuellner gnome org>
Date: Wed May 1 14:17:54 2019 +0200
connector: Remove unnecessary None check
The code is only reached if shell_version is not None, so no need
to check again.
connector/chrome-gnome-shell.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/connector/chrome-gnome-shell.py b/connector/chrome-gnome-shell.py
index c14a149..75487f5 100755
--- a/connector/chrome-gnome-shell.py
+++ b/connector/chrome-gnome-shell.py
@@ -420,7 +420,7 @@ class ChromeGNOMEShell(Gio.Application):
'success': True,
'properties': {
'connectorVersion': CONNECTOR_VERSION,
- 'shellVersion': shell_version.unpack() if shell_version is not None else None,
+ 'shellVersion': shell_version.unpack(),
'versionValidationEnabled': not disable_version_check,
'userExtensionsDisabled': disable_user_extensions,
'supports': supports
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]