Skip to content

Commit 3e16f28

Browse files
Add a comment about a call to reverse
1 parent 335bb57 commit 3e16f28

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

grease-cli/tests/Main.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,6 +478,7 @@ withCapturedLogs ::
478478
withCapturedLogs withLogAction = do
479479
logRef <- IORef.newIORef []
480480
withLogAction (capture logRef)
481+
-- Reverse the list so that logs appear chronologically
481482
logs <- List.reverse <$> IORef.readIORef logRef
482483
let logTxt = Text.unlines (map (Text.pack . show . PP.pretty) logs)
483484
pure logTxt

0 commit comments

Comments
 (0)