Use Map.member instead of isJust and Map.lookup

This commit is contained in:
Joseph C. Sible 2020-02-09 22:22:32 -05:00
parent 8f0448133c
commit ea24e25efd
1 changed files with 1 additions and 1 deletions

View File

@ -849,7 +849,7 @@ checkArrayWithoutIndex params _ =
readF _ _ _ = return []
writeF _ (T_Assignment id mode name [] _) _ (DataString _) = do
isArray <- gets (isJust . Map.lookup name)
isArray <- gets (Map.member name)
return $ if not isArray then [] else
case mode of
Assign -> [makeComment WarningC id 2178 "Variable was used as an array but is now assigned a string."]