mirror of
https://github.com/arsenetar/send2trash.git
synced 2025-03-12 06:34:36 +00:00
Merge pull request #77 from BoboTiG/patch-1
win/legacy: tiny logic simplification
This commit is contained in:
commit
d6d904c774
@ -86,10 +86,7 @@ def convert_sh_file_opt_result(result):
|
|||||||
0x10074: 0x57, # DE_ROOTDIR | ERRORONDEST -> ERROR_INVALID_PARAMETER
|
0x10074: 0x57, # DE_ROOTDIR | ERRORONDEST -> ERROR_INVALID_PARAMETER
|
||||||
}
|
}
|
||||||
|
|
||||||
if result in results.keys():
|
return results.get(result, result)
|
||||||
return results[result]
|
|
||||||
else:
|
|
||||||
return result
|
|
||||||
|
|
||||||
|
|
||||||
def prefix_and_path(path):
|
def prefix_and_path(path):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user