From 374bf349201a93a77698b27d266894f28a022f87 Mon Sep 17 00:00:00 2001 From: Brian Sheldon Date: Fri, 25 Nov 2022 10:46:20 -0500 Subject: [PATCH] Streamline `core.processor.nzbget._parse_unpack_status` --- core/processor/nzbget.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/core/processor/nzbget.py b/core/processor/nzbget.py index d92043cc..5a8358f6 100644 --- a/core/processor/nzbget.py +++ b/core/processor/nzbget.py @@ -48,11 +48,10 @@ def _parse_par_status(): def _parse_unpack_status(): - status = 0 if os.environ['NZBPP_UNPACKSTATUS'] == '1': logger.warning('Unpack failed, setting status \'failed\'') - status = 1 - return status + return 1 + return 0 def _parse_health_status():