Streamline core.processor.nzbget._parse_unpack_status

This commit is contained in:
Brian Sheldon 2022-11-25 10:46:20 -05:00
commit 374bf34920

View file

@ -48,11 +48,10 @@ def _parse_par_status():
def _parse_unpack_status(): def _parse_unpack_status():
status = 0
if os.environ['NZBPP_UNPACKSTATUS'] == '1': if os.environ['NZBPP_UNPACKSTATUS'] == '1':
logger.warning('Unpack failed, setting status \'failed\'') logger.warning('Unpack failed, setting status \'failed\'')
status = 1 return 1
return status return 0
def _parse_health_status(): def _parse_health_status():