Skip to content

Commit

Permalink
code qa
Browse files Browse the repository at this point in the history
  • Loading branch information
ajinabraham committed Nov 14, 2024
1 parent 7af4c50 commit 192b564
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libsast/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def __init__(self, options: dict, paths: list) -> None:
def scan(self) -> dict:
"""Start Scan."""
results = {}
valid_paths = self.get_scan_files(self.paths)
valid_paths = self.get_scan_files()

if not valid_paths:
return {}
Expand All @@ -68,13 +68,13 @@ def scan(self) -> dict:

return results

def get_scan_files(self, paths):
def get_scan_files(self):
"""Get files valid for scanning."""
if not isinstance(paths, list):
if not isinstance(self.paths, list):
raise InvalidPathError('Path should be a list')

all_files = set()
for path in paths:
for path in self.paths:
pobj = Path(path)
if pobj.is_dir():
all_files.update({
Expand Down

0 comments on commit 192b564

Please sign in to comment.