Skip to content

Commit a5bec09

Browse files
committed
remove superfluous optional
1 parent c6ee45d commit a5bec09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

persistent/Database/Persist/Quasi/Internal/ModelParser.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -821,7 +821,7 @@ entityField = do
821821
ss <- optional fieldStrictness
822822
fn <- L.lexeme spaceConsumer fieldName
823823
ft <- L.lexeme spaceConsumer typeExpr -- Note that `typeExpr` consumes outer parentheses.
824-
fa <- optional $ L.lexeme spaceConsumer (many attribute)
824+
fa <- L.lexeme spaceConsumer (many attribute)
825825
_ <- setLastDocumentablePosition
826826
lookAhead (void newline <|> eof)
827827
pure $
@@ -831,7 +831,7 @@ entityField = do
831831
, entityFieldStrictness = ss
832832
, entityFieldName = fn
833833
, entityFieldType = ft
834-
, entityFieldAttributes = fromMaybe [] fa
834+
, entityFieldAttributes = fa
835835
, entityFieldPos = pos
836836
}
837837

0 commit comments

Comments
 (0)