Skip to content

Commit acb86c9

Browse files
Update src/Data/Codec/Argonaut/Generic.purs
Co-authored-by: Gary Burgess <[email protected]>
1 parent a795eda commit acb86c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/Data/Codec/Argonaut/Generic.purs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,5 +44,7 @@ instance nullarySumCodecCtor ∷ IsSymbol name ⇒ NullarySumCodec (Constructor
4444
J.fromString $ reflectSymbol (Proxy Proxy name)
4545
nullarySumDecode name j = do
4646
tag ← note (CA.Named name (CA.TypeMismatch "String")) (J.toString j)
47-
if tag /= reflectSymbol (Proxy Proxy name) then Left (CA.Named name (CA.UnexpectedValue j))
48-
else Right (Constructor NoArguments)
47+
if tag /= reflectSymbol (Proxy Proxy name) then
48+
Left (CA.Named name (CA.UnexpectedValue j))
49+
else
50+
Right (Constructor NoArguments)

0 commit comments

Comments
 (0)