From 03a7ccd74a511cfa79af9726dec698dc982a2fe5 Mon Sep 17 00:00:00 2001 From: Broque Thomas <26755000+Nezreka@users.noreply.github.com> Date: Sat, 2 May 2026 23:18:05 -0700 Subject: [PATCH] Rename unused loop var to silence ruff B007 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `sub_name` is unused — the recursion only needs the path. Rename to `_sub_name` to satisfy ruff's B007 check. --- core/auto_import_worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/auto_import_worker.py b/core/auto_import_worker.py index edf14a22..b5c25a81 100644 --- a/core/auto_import_worker.py +++ b/core/auto_import_worker.py @@ -490,7 +490,7 @@ class AutoImportWorker: # Otherwise recurse into non-disc subdirs (disc folders only # ever attach to a parent album, never stand alone). - for sub_name, sub_path in non_disc_subdirs: + for _sub_name, sub_path in non_disc_subdirs: self._scan_directory(sub_path, candidates, staging_root=staging_root) def _is_folder_stable(self, candidate: FolderCandidate) -> bool: