removed all uses of undefined from code base
It's a code smell, can lead to hard to diagnose error messages.
This commit is contained in:
parent
d7f4c823d7
commit
addc82dab7
19 changed files with 42 additions and 37 deletions
|
@ -110,4 +110,4 @@ catTree h treeref = go <$> catObjectDetails h treeref
|
|||
parsemodefile b =
|
||||
let (modestr, file) = separate (== ' ') (decodeBS b)
|
||||
in (file, readmode modestr)
|
||||
readmode = fst . fromMaybe (0, undefined) . headMaybe . readOct
|
||||
readmode = fromMaybe 0 . fmap fst . headMaybe . readOct
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue