Remove local variable.

This commit is contained in:
Mark Burton 2021-06-06 12:15:31 +01:00
parent 4973d53057
commit 2f1f370fe0

View file

@ -417,10 +417,9 @@ class SimulationView(CuraView):
return self._max_flow_rate
def getMinFlowRate(self) -> float:
min_flow_rate = self._min_flow_rate
if abs(min_flow_rate - sys.float_info.max) < 10: # Some lenience due to floating point rounding.
if abs(self._min_flow_rate - sys.float_info.max) < 10: # Some lenience due to floating point rounding.
return 0.0 # If it's still max-float, there are no measurements. Use 0 then.
return min_flow_rate
return self._min_flow_rate
def calculateMaxLayers(self) -> None:
"""