1
1
mirror of https://github.com/github/semantic.git synced 2025-01-02 20:41:38 +03:00

Update src/Language/Java/Assignment.hs

Parens are not necessary here.

Co-Authored-By: Rob Rix <robrix@github.com>
This commit is contained in:
Patrick Thomson 2019-09-06 13:36:43 -04:00 committed by GitHub
parent c623d2906b
commit 6fc97fce21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -452,7 +452,7 @@ throw :: Assignment Term
throw = makeTerm <$> symbol ThrowStatement <*> children (Statement.Throw <$> term expression)
try :: Assignment Term
try = (symbol TryStatement *> children tryWithResources) <|> standardTry
try = symbol TryStatement *> children tryWithResources <|> standardTry
standardTry :: Assignment Term
standardTry = makeTerm <$> symbol TryStatement <*> children (Statement.Try <$> term expression <*> (append <$> optional catches <*> optional finally))