Skip to content

Commit

Permalink
Fix hlint CI
Browse files Browse the repository at this point in the history
  • Loading branch information
adithyaov committed Oct 8, 2024
1 parent 5d52680 commit f75cda6
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions core/src/Streamly/Internal/Data/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1757,17 +1757,15 @@ wordWithQuotes keepQuotes tr escChar toRight isSep
FL.Done b -> Done 0 b

{-# INLINE checkRightQuoteAndProcess #-}
checkRightQuoteAndProcess s a n ql qr =
if a == qr
then
checkRightQuoteAndProcess s a n ql qr
| a == qr =
if n == 1
then if keepQuotes
then processUnquoted s a
else return $ Continue 0 $ WordUnquotedWord s
else processQuoted s a (n - 1) ql qr
else if a == ql
then processQuoted s a (n + 1) ql qr
else processQuoted s a n ql qr
| a == ql = processQuoted s a (n + 1) ql qr
| otherwise = processQuoted s a n ql qr

step (WordQuotedSkipPre s) a
| isEsc a = return $ Continue 0 $ WordUnquotedEsc s
Expand Down

0 comments on commit f75cda6

Please sign in to comment.