Skip to content

Commit

Permalink
Remove another dead branch from toStrict
Browse files Browse the repository at this point in the history
Looking at a test coverage report brought it to my attention.
  • Loading branch information
clyring committed Feb 15, 2024
1 parent 161780a commit 375d834
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion Data/ByteString/Lazy/Internal.hs
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,6 @@ toStrict = \cs -> goLen0 cs cs

-- Copy the data
goCopy Empty !_ = return ()
goCopy (Chunk (S.BS _ 0 ) cs) !ptr = goCopy cs ptr
goCopy (Chunk (S.BS fp len) cs) !ptr = do
S.memcpyFp ptr fp len
goCopy cs (ptr `S.plusForeignPtr` len)
Expand Down

0 comments on commit 375d834

Please sign in to comment.