Skip to content

Commit

Permalink
win/legacy: tiny logic simplification
Browse files Browse the repository at this point in the history
  • Loading branch information
BoboTiG authored Apr 2, 2023
1 parent 0ef9b32 commit 0a36688
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions send2trash/win/legacy.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,10 +86,7 @@ def convert_sh_file_opt_result(result):
0x10074: 0x57, # DE_ROOTDIR | ERRORONDEST -> ERROR_INVALID_PARAMETER
}

if result in results.keys():
return results[result]
else:
return result
return results.get(result, result)


def prefix_and_path(path):
Expand Down

0 comments on commit 0a36688

Please sign in to comment.