Skip to content

Commit

Permalink
codafactor not using free
Browse files Browse the repository at this point in the history
  • Loading branch information
andped10 committed Nov 21, 2024
1 parent fe36b1b commit eaf4caa
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/easyreflectometry/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -455,8 +455,7 @@ def free_parameters_count(self) -> int:
count = 0
parameters = self.parameters
for parameter in parameters:
if parameter.free:
count = count + 1
count = count + 1
return count

# return sum(1 for parameter in self.parameters if parameter.free)
Expand Down

0 comments on commit eaf4caa

Please sign in to comment.