Skip to content

Commit d532d33

Browse files
thewheatchoran
authored andcommitted
Remove unnecessary type validation (#171)
1 parent d6ac77c commit d532d33

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

intercom-java/src/main/java/io/intercom/api/Conversation.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,9 +141,6 @@ static void validateMessageType(Reply reply) {
141141
}
142142

143143
static void validateListRequest(Map<String, String> params) {
144-
if (!params.containsKey("type")) {
145-
throw new InvalidException("a user or admin type must be supplied for a conversation query");
146-
}
147144

148145
if (isAdminQuery(params)
149146
&& !(params.containsKey("admin_id"))) {

0 commit comments

Comments
 (0)