diff options
author | Alexander Foremny <aforemny@posteo.de> | 2024-03-13 06:16:50 +0100 |
---|---|---|
committer | Alexander Foremny <aforemny@posteo.de> | 2024-03-14 07:07:45 +0100 |
commit | 7f0066cafd2a91959ef618ef8342524ca30a328f (patch) | |
tree | 6a9194edb4c3f48401d6da35a09942aa77920148 /app/Git | |
parent | e06061a2d5717bee9b0b4fcaf72d3c79923e4016 (diff) |
review: request-changes feature/review
Diffstat (limited to 'app/Git')
-rw-r--r-- | app/Git/CommitHash.hs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/Git/CommitHash.hs b/app/Git/CommitHash.hs index c53e2d8..28aa738 100644 --- a/app/Git/CommitHash.hs +++ b/app/Git/CommitHash.hs @@ -27,8 +27,12 @@ toText (Commit hash) = Just hash toTextUnsafe :: CommitHash -> T.Text toTextUnsafe (Commit hash) = hash toTextUnsafe _ = error "toTextUnsafe: WorkingDir" +-- ^ REVIEW Why is this unsafe? +-- +-- REVIEW Because it is a partial function. +-- +-- RESOLVED --- REVIEW Why is this unsafe? instance P.Render CommitHash where render = P.render . P.Detailed |