Skip to content

Commit 84775d9

Browse files
committed
cleanup
1 parent ba0bb65 commit 84775d9

File tree

1 file changed

+1
-1
lines changed
  • plugins/hls-semantic-tokens-plugin/src/Ide/Plugin/SemanticTokens

1 file changed

+1
-1
lines changed

plugins/hls-semantic-tokens-plugin/src/Ide/Plugin/SemanticTokens/Tokenize.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ mkPTokenState vf =
6969
liftMaybeM :: (Monad m) => a -> Tokenizer Maybe a -> Tokenizer m a
7070
liftMaybeM a p = do
7171
st <- get
72-
maybe (return a) (\(a, st') -> put st' >> return a) $ runStateT p st
72+
maybe (return a) (\(ans, st') -> put st' >> return ans) $ runStateT p st
7373

7474
computeRangeHsSemanticTokenTypeList :: HsSemanticLookup -> VirtualFile -> HieAST a -> RangeHsSemanticTokenTypes
7575
computeRangeHsSemanticTokenTypeList lookupHsTokenType vf ast =

0 commit comments

Comments
 (0)