Skip to content

Commit

Permalink
MIN+RFCT Better code (lint warning)
Browse files Browse the repository at this point in the history
  • Loading branch information
luispedro committed Mar 19, 2021
1 parent 1466954 commit 9732282
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions NGLess/Types.hs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import BuiltinFunctions
import Utils.Suggestion
import Utils.Utils


type TypeMap = Map.Map T.Text NGLType
type TypeMSt = StateT (Int, TypeMap) -- ^ Current line & current type map (type map is inferred top-to-bottom)
(ExceptT NGError -- ^ to enable early exit for certain types of error
Expand Down Expand Up @@ -187,7 +186,7 @@ typeOfObject (NGOList []) = Nothing
typeOfObject (NGOList (v:_)) = NGList <$> typeOfObject v


checkuop UOpLen e = checkindexable e *> return (Just NGLInteger)
checkuop UOpLen e = checkindexable e $> Just NGLInteger
checkuop UOpMinus e = checknum e
checkuop UOpNot e = checkBool e

Expand Down

0 comments on commit 9732282

Please sign in to comment.