From 8bf3592305f24a7e53e519fb32e3b7990a41ec6b Mon Sep 17 00:00:00 2001 From: Peter Vandenberk Date: Tue, 3 Sep 2024 06:46:35 +0100 Subject: [PATCH] fix two issues/bugs/typos in `check()` method --- lib/fit4ruby/Session.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/fit4ruby/Session.rb b/lib/fit4ruby/Session.rb index 127ee22..741e0eb 100644 --- a/lib/fit4ruby/Session.rb +++ b/lib/fit4ruby/Session.rb @@ -60,10 +60,10 @@ def check(activity) Log.fatal 'num_laps is not set' end @first_lap_index.upto(@first_lap_index - @num_laps) do |i| - if (lap = activity.lap[i]) + if (lap = activity.laps[i]) @laps << lap else - Log.fatal "Session references lap #{i} which is not contained in " + Log.fatal "Session references lap #{i} which is not contained in " \ "the FIT file." end end