From 00bf399c9a7709b490acb2e35b8d5804d0e66167 Mon Sep 17 00:00:00 2001 From: Yamakaky Date: Fri, 16 Apr 2021 10:59:05 +0200 Subject: [PATCH] Remove assignment operator --- bw_add_sshkeys.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bw_add_sshkeys.py b/bw_add_sshkeys.py index 715d840..da402c0 100644 --- a/bw_add_sshkeys.py +++ b/bw_add_sshkeys.py @@ -62,7 +62,8 @@ def get_session(): Function to return a valid Bitwarden session """ # Check for an existing, user-supplied Bitwarden session - if (session := os.environ.get('BW_SESSION')) is not None: + session = os.environ.get('BW_SESSION') + if session is not None: logging.debug('Existing Bitwarden session found') return session