Skip to content

Commit

Permalink
rename _clock to computedClock
Browse files Browse the repository at this point in the history
  • Loading branch information
ornicar committed Apr 15, 2024
1 parent f6d37ae commit 60db16a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/study/src/main/PgnImport.scala
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ object PgnImport:
val sanStr = moveOrDrop.toSanStr
parseComments(node.value.metas.comments, annotator) match
case (shapes, clock, emt, comments) =>
val _clock = clock.orElse((context.previousClock, emt).mapN(_ - _))
val computedClock = clock.orElse((context.previousClock, emt).mapN(_ - _))
Branch(
id = UciCharPair(uci),
ply = game.ply,
Expand All @@ -145,10 +145,10 @@ object PgnImport:
shapes = shapes,
comments = comments,
glyphs = node.value.metas.glyphs,
clock = _clock,
clock = computedClock,
crazyData = game.situation.board.crazyData,
children = node.child.fold(Branches.empty)(
makeBranches(Context(game, _clock, context.currentClock), _, annotator)
makeBranches(Context(game, computedClock, context.currentClock), _, annotator)
)
).some
)
Expand Down

0 comments on commit 60db16a

Please sign in to comment.