1
1
mirror of https://github.com/github/semantic.git synced 2024-12-24 15:35:14 +03:00

Handle the degenerate Nothing/Nothing case explicitly (even tho it’ll never happen).

This commit is contained in:
Rob Rix 2016-03-08 23:42:36 -05:00
parent 32583239a6
commit df97801db6

View File

@ -88,6 +88,7 @@ header blobs hunk = intercalate "\n" [filepathHeader, fileModeHeader, beforeFile
"old mode" ++ modeToDigits mode1,
"new mode " ++ modeToDigits mode2 ++ " " ++ blobOidHeader
]
(Nothing, Nothing) -> ""
blobOidHeader = "index " ++ oidA ++ ".." ++ oidB
modeHeader :: String -> Maybe SourceKind -> String -> String
modeHeader ty maybeMode path = case maybeMode of