Skip to content

Commit

Permalink
fix black formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
richm committed Jun 3, 2024
1 parent 2a49507 commit 28a71ef
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/module_utils/size.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,5 @@ 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)) * self.number

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.
return self._format(fmt, ftr, exp) % value

0 comments on commit 28a71ef

Please sign in to comment.