scrapper / fit4ruby

Fit4Ruby is a Ruby library to read and write FIT files.
GNU General Public License v2.0
26 stars 17 forks source link

fix two issues/bugs/typos in `Session#check()` #39

Open pvdb opened 2 months ago

pvdb commented 2 months ago

This PR addresses the NoMethodError issue mentioned in #38:

undefined method `lap' for an instance of Fit4Ruby::Activity

... by fixing a typo: activity.lap should be activity.laps

It also fixes another minor issue with the fatal error message:

Session references lap 0 which is not contained in 

... by correcting the line continuation.

Note that this PR doesn't address the "empty enumerator" issue yet, so in and of itself it doesn't really fix much, but I will issue a separate PR to fix the enumeration logic ... thanks, @scrapper !