SonarQube reveal two issues (could be refactored): 1. Delete this unreachable code or refactor the code to make it reachable (in both variants of validation crc/sha we have return statements): https://github.com/gitpython-developers/gitdb/blob/f8fdfec0fd0a0aed9171c6cf2c5cb8d73e2bb305/gitdb/pack.py#L851 2. This branch duplicates the one on line 268. https://github.com/gitpython-developers/gitdb/blob/f8fdfec0fd0a0aed9171c6cf2c5cb8d73e2bb305/gitdb/pack.py#L270 and https://github.com/gitpython-developers/gitdb/blob/f8fdfec0fd0a0aed9171c6cf2c5cb8d73e2bb305/gitdb/pack.py#L268
SonarQube reveal two issues (could be refactored):
Delete this unreachable code or refactor the code to make it reachable (in both variants of validation crc/sha we have return statements):
gitdb/gitdb/pack.py
Line 851 in f8fdfec
This branch duplicates the one on line 268.
gitdb/gitdb/pack.py
Line 270 in f8fdfec
and
gitdb/gitdb/pack.py
Line 268 in f8fdfec