Skip to content

Commit 91424a9

Browse files
committed
Refactor: remove brackets that are redundant
1 parent c7960f4 commit 91424a9

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

src/GitHub/Data/Gists.hs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,14 @@ instance NFData NewGist where rnf = genericRnf
100100
instance Binary NewGist
101101

102102
instance ToJSON NewGist where
103-
toJSON (NewGist { newGistDescription = description
104-
, newGistFiles = files
105-
, newGistPublic = public
106-
}) = object
107-
[ "description" .= description
108-
, "files" .= files
109-
, "public" .= public
110-
]
103+
toJSON NewGist { newGistDescription = description
104+
, newGistFiles = files
105+
, newGistPublic = public
106+
} = object
107+
[ "description" .= description
108+
, "files" .= files
109+
, "public" .= public
110+
]
111111

112112
data NewGistFile = NewGistFile
113113
{ newGistFileContent :: !Text

0 commit comments

Comments
 (0)