Fix new rubocop warnings
This commit is contained in:
parent
67f28108ec
commit
99f220cf69
2 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@ module GPX
|
|||
point.timestamp = Time.parse(reader.read_string).utc
|
||||
end
|
||||
when XML::Reader::TYPE_END_ELEMENT
|
||||
if reader.name == "trkpt" && point && point.valid?
|
||||
if reader.name == "trkpt" && point&.valid?
|
||||
point.altitude ||= 0
|
||||
yield point
|
||||
@actual_points += 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue