Skip to content

Commit

Permalink
more
Browse files Browse the repository at this point in the history
  • Loading branch information
richm committed Apr 24, 2024
1 parent 61be62d commit cfef0f3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/module_utils/size.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ def get(self, units="autobin", fmt="%0.1f %sb"):
exp += 1
else:
ftr, exp = self._parse_units(units.strip())
value = (float(self.factor**self.exponent) / float(ftr**exp)) * self.number

value = (
float(self.factor**self.exponent) / float(ftr**exp)

Check failure

Code scanning / CodeQL

Potentially uninitialized local variable Error test

Local variable 'ftr' may be used before it is initialized.

Check failure

Code scanning / CodeQL

Potentially uninitialized local variable Error test

Local variable 'exp' may be used before it is initialized.
) * self.number
return self._format(fmt, ftr, exp) % value

0 comments on commit cfef0f3

Please sign in to comment.