Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add missing notNull function
  • Loading branch information
Alex Mason authored and Alex Mason committed Oct 25, 2018
commit 8f9669d207176e4dd0a1eb5127cb41bc68f07342
3 changes: 3 additions & 0 deletions src/GitHub/Data/Issues.hs
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ instance ToJSON NewIssue where
, "milestone" .= m
, "labels" .= ls
]
where
notNull (_, Null) = False
notNull (_, _) = True

instance ToJSON EditIssue where
toJSON (EditIssue t b a s m ls) = object $ filter notNull
Expand Down