Skip to content

Commit

Permalink
bug fix for indexing. we were folding in the wrong direction
Browse files Browse the repository at this point in the history
  • Loading branch information
aviaviavi committed Jul 10, 2018
1 parent 952788b commit 1745479
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Testing/CurlRunnings.hs
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,8 @@ getValueForQuery (CurlRunningsState _ previousResults _) full@(NonInterpolatedQu
NullPointer
(T.pack $ show full)
"No data was returned from this case"
in foldr
(\index eitherVal ->
in foldl
(\eitherVal index ->
case (eitherVal, index) of
(Left l, _) -> Left l
(Right (Object o), KeyIndex k) ->
Expand Down

0 comments on commit 1745479

Please sign in to comment.