Skip to content

Commit d7fb792

Browse files
committed
remove unnecessary checkJSON
1 parent 283ab8a commit d7fb792

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/client.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export default class Client {
2323
return this.post(URL.push, {
2424
messages: toArray(messages),
2525
to,
26-
}) /*.then(this.checkJSON)*/;
26+
});
2727
}
2828

2929
public replyMessage(
@@ -33,7 +33,7 @@ export default class Client {
3333
return this.post(URL.reply, {
3434
messages: toArray(messages),
3535
replyToken,
36-
}).then(this.checkJSON);
36+
});
3737
}
3838

3939
public multicast(
@@ -43,7 +43,7 @@ export default class Client {
4343
return this.post(URL.multicast, {
4444
messages: toArray(messages),
4545
to,
46-
}).then(this.checkJSON);
46+
});
4747
}
4848

4949
public getProfile(userId: string): Promise<Types.Profile> {
@@ -103,11 +103,11 @@ export default class Client {
103103
}
104104

105105
public leaveGroup(groupId: string): Promise<any> {
106-
return this.post(URL.leaveGroup(groupId)).then(this.checkJSON);
106+
return this.post(URL.leaveGroup(groupId));
107107
}
108108

109109
public leaveRoom(roomId: string): Promise<any> {
110-
return this.post(URL.leaveRoom(roomId)).then(this.checkJSON);
110+
return this.post(URL.leaveRoom(roomId));
111111
}
112112

113113
public getRichMenu(

0 commit comments

Comments
 (0)