1
0
mirror of https://github.com/arsenetar/send2trash.git synced 2024-12-06 20:59:03 +00:00

win/legacy: tiny logic simplification

This commit is contained in:
Mickaël Schoentgen 2023-04-02 17:08:25 +02:00 committed by GitHub
parent 0ef9b3294a
commit 0a36688a4b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):