style: use consistent positional args for remove_file call

Agent-Logs-Url: https://github.com/rommapp/romm/sessions/303f2c27-6b65-41a9-b201-c055142b1edb

Co-authored-by: gantoine <3247106+gantoine@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-03 17:33:06 +00:00
committed by GitHub
parent 674061c1d3
commit ce42957162

View File

@@ -1480,7 +1480,7 @@ async def delete_roms(
if full_path.is_dir():
await fs_rom_handler.remove_directory(rom_path)
else:
await fs_rom_handler.remove_file(file_path=rom_path)
await fs_rom_handler.remove_file(rom_path)
# Clean up empty parent directory if it becomes empty
parent = full_path.parent
if (