Skip to content

Commit

Permalink
Remove unnecessary empty variable declarations (these were only inclu…
Browse files Browse the repository at this point in the history
…ded to silence PyCharm warnings)
  • Loading branch information
rwinkhart committed Jan 9, 2024
1 parent 5f5ede7 commit ec3ee29
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/sshyp.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ def encrypt(_entry_data, _entry_dir, _gpg_id):

# decrypts an entry and returns its contents
def decrypt(_entry_dir, _quick_verify=None, _quick_pass=None):
_contents = None

# check quick-unlock status, fetch passphrase
if _quick_verify:
_quick_pass = whitelist_verify(port, username_ssh, ip, client_device_id, identity)
Expand Down Expand Up @@ -474,9 +472,6 @@ def rename():

# edits the contents of an entry
def edit():
# set to avoid PEP8 warnings
_detail, _edit_line = None, None

# ensure the edit target is an entry
target_type_check(entry_name, True, True)

Expand All @@ -500,8 +495,6 @@ def edit():

# generates a password for a new or an existing entry
def gen():
# set to avoid PEP8 warnings
_username, _url = None, None
# gen update
if arg_count == 3 and arguments[2] in ('update', '-u'):
# ensure the gen update target is an entry
Expand Down Expand Up @@ -617,9 +610,6 @@ def extension_runner():
# set default states
ssh_error, success_flag, sync_flag, silent_sync, pass_show = False, False, False, False, False

# set to avoid PEP8 warnings
arg_start, device_type, offline_mode_enabled = None, None, None

# retrieve typed argument
arguments = argv[1:]
arg_count = len(arguments)
Expand Down

0 comments on commit ec3ee29

Please sign in to comment.