Adds argument de-structuring to 'rmTool' function & remove the one in its body

This commit is contained in:
Arjun Kathuria 2021-06-22 20:09:26 +05:30
parent 82a704ab44
commit 4ef3622616

View File

@ -1290,8 +1290,7 @@ rmTool :: ( MonadReader AppState m
=> ListResult => ListResult
-> Excepts '[NotInstalled ] m () -> Excepts '[NotInstalled ] m ()
rmTool tool = do rmTool ListResult {lVer, lTool, lCross} = do
let ListResult {lVer, lTool, lCross} = tool
-- appstate <- ask -- appstate <- ask
case lTool of case lTool of