mirror of
https://github.com/github/semantic.git
synced 2024-12-23 23:11:50 +03:00
Handle the degenerate Nothing/Nothing case explicitly (even tho it’ll never happen).
This commit is contained in:
parent
32583239a6
commit
df97801db6
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user