Agent: Remove unnecessary `if` from _find_files()

This commit is contained in:
Mike Salvatore 2021-07-08 12:39:45 -04:00
parent bb554d923d
commit fb50ba1e55
1 changed files with 0 additions and 3 deletions

View File

@ -65,9 +65,6 @@ class RansomwarePayload:
def _find_files(self) -> List[Path]:
LOG.info(f"Collecting files in {self._target_dir}")
if not self._target_dir:
return []
return select_production_safe_target_files(self._target_dir, self._targeted_file_extensions)
def _encrypt_files(self, file_list: List[Path]) -> List[Tuple[Path, Optional[Exception]]]: