]> dgit.raspbian.org Git - git-annex.git/commitdiff
handle unhandled case
authorJoey Hess <joeyh@joeyh.name>
Thu, 4 Nov 2021 18:36:48 +0000 (14:36 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 4 Nov 2021 18:36:48 +0000 (14:36 -0400)
Git/PktLine.hs

index dce62d75fdf873160cd4b71fb79858ad259c882f..c554ce70260187bd83d5bc1a0deb719ece66ca52 100644 (file)
@@ -49,7 +49,7 @@ pktLineToString (PktLine b) =
        let s = decodeBS b
        in case lastMaybe s of
                Just '\n' -> beginning s
-               Nothing -> s
+               _ -> s
 
 {- Reads the next PktLine from a Handle. Returns Nothing on EOF or when
  - there is a protocol error. -}