Skip to content

Commit c351098

Browse files
Replaced append with extend method
1 parent 7fa008e commit c351098

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

xgitguard/file-scanner/secret_detection.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ def check_existing_detections(file_path):
8383
).hexdigest()
8484
if parse_checksum:
8585
if not parse_checksum in configs.hashed_files:
86-
new_hashed_file.append(file_path)
87-
new_hashed_file.append(hash_object)
88-
new_hashed_file.append(parse_checksum)
86+
new_hashed_file.extend(
87+
[file_path, hash_object, parse_checksum]
88+
)
8989
new_hashed_files.append(new_hashed_file)
9090
except Exception as e:
9191
logger.error(f"Hash File Write error: {e}")

0 commit comments

Comments
 (0)