From 1dcdbe3cf03ff16b3ff2e2e6d572e0b3c72c18c0 Mon Sep 17 00:00:00 2001 From: salmonik Date: Sun, 19 Apr 2026 15:43:32 +0200 Subject: refactor: simplify cogs, reduce complexity - Remove unused imports and dead code - Cleaner error handling - Reduce cognitive complexity --- cogs/utils/temp.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cogs/utils/temp.py') diff --git a/cogs/utils/temp.py b/cogs/utils/temp.py index 528d6a3..0b2c8d7 100644 --- a/cogs/utils/temp.py +++ b/cogs/utils/temp.py @@ -8,11 +8,11 @@ import tempfile def get_temp_dir(subdir: str = "senator_sperma") -> str: """Get or create a temp subdirectory. - + Uses system temp directory (/tmp on Linux, %TEMP% on Windows). OS handles cleanup automatically. """ base_temp = tempfile.gettempdir() temp_path = os.path.join(base_temp, subdir) os.makedirs(temp_path, exist_ok=True) - return temp_path \ No newline at end of file + return temp_path -- cgit v1.2.3