Skip to content

Commit

Permalink
Merge pull request #77 from BoboTiG/patch-1
Browse files Browse the repository at this point in the history
win/legacy: tiny logic simplification
  • Loading branch information
arsenetar authored Apr 27, 2023
2 parents 0ef9b32 + 0a36688 commit d6d904c
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 d6d904c

Please sign in to comment.