Follow previous renaming for a local variable in Navigation for more clarity

This commit is contained in:
Tissevert 2020-02-23 22:15:52 +01:00
parent bcf2e05bfb
commit 36b1782464

View file

@ -58,8 +58,8 @@ getField key aDictionary =
objectById :: PDFContent m => ObjectId -> m Object
objectById objectId = do
content <- ask
return (objects content ! objectId)
layer <- ask
return (objects layer ! objectId)
(./) :: PDFContent m => m Object -> String -> m Object
(./) object key = (object >>= getDictionary >>= getField key >>= castObject)