Skip to content

Commit 6cc0d72

Browse files
committed
remove an unneeded guard
1 parent 91c4da4 commit 6cc0d72

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Language/Fortran/Analysis/Types.hs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -509,9 +509,9 @@ getExprRecordedType _ = pure Nothing
509509

510510
-- Set the idType annotation
511511
setIDType :: Annotated f => IDType -> f (Analysis a) -> f (Analysis a)
512-
setIDType ty x
513-
| a@Analysis {} <- getAnnotation x = setAnnotation (a { idType = Just ty }) x
514-
| otherwise = x
512+
setIDType ty x =
513+
let a = getAnnotation x
514+
in setAnnotation (a { idType = Just ty }) x
515515

516516
-- Get the idType annotation
517517
getIDType :: (Annotated f, Data a) => f (Analysis a) -> Maybe IDType

0 commit comments

Comments
 (0)