Remove unnecessary guard clauses
This commit is contained in:
parent
36dcd603ca
commit
1ddc343487
1 changed files with 4 additions and 10 deletions
|
@ -123,10 +123,7 @@ class RAOBSounding():
|
||||||
|
|
||||||
sample = self.sample_by_pressure(pressure)
|
sample = self.sample_by_pressure(pressure)
|
||||||
|
|
||||||
if sample.temp is None:
|
|
||||||
sample.temp = temp
|
sample.temp = temp
|
||||||
|
|
||||||
if sample.dewpoint is None:
|
|
||||||
sample.dewpoint = dewpoint
|
sample.dewpoint = dewpoint
|
||||||
|
|
||||||
def record_wind_speed_dir(self,
|
def record_wind_speed_dir(self,
|
||||||
|
@ -138,10 +135,7 @@ class RAOBSounding():
|
||||||
|
|
||||||
sample = self.sample_by_pressure(pressure)
|
sample = self.sample_by_pressure(pressure)
|
||||||
|
|
||||||
if sample.wind_speed is None:
|
|
||||||
sample.wind_speed = wind_speed
|
sample.wind_speed = wind_speed
|
||||||
|
|
||||||
if sample.wind_dir is None:
|
|
||||||
sample.wind_dir = wind_dir
|
sample.wind_dir = wind_dir
|
||||||
|
|
||||||
class RAOBObs():
|
class RAOBObs():
|
||||||
|
|
Loading…
Add table
Reference in a new issue