the if is actually unnecessary

This commit is contained in:
krangelov
2020-07-22 16:55:21 +02:00
parent 7229033e42
commit 0cee82f715

View File

@@ -1266,9 +1266,7 @@ withBracketLinFuncs ref exn f =
then writeIORef ref (stack, bs')
else do cat <- peekUtf8CString c_cat
let fid = fromIntegral c_fid
ann <- if c_ann == nullPtr
then return ""
else peekUtf8CString c_ann
ann <- peekUtf8CString c_ann
fun <- peekUtf8CString c_fun
writeIORef ref (stack, Bracket cat fid ann fun (reverse bs) : bs')