Skip to content

Commit 7d7c7d9

Browse files
committed
checkIf*系関数をリネーム (#1)
1 parent d56ffcd commit 7d7c7d9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/client/Qiita.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export class Qiita extends Gateway {
150150
* @param tag_id タグのID
151151
* @return タグ
152152
*/
153-
public checkIfFollowingTag = (tag_id: string) => {
153+
public fetchTagFollowing = (tag_id: string) => {
154154
return this.get<Tag>(`${this.url}${this.version}/tags/${tag_id}/following`);
155155
}
156156

@@ -414,7 +414,7 @@ export class Qiita extends Gateway {
414414
* @param user_id ユーザーID
415415
* @return 空のオブジェクト
416416
*/
417-
public checkIfFollowingUser = (user_id: string) => {
417+
public fetchIfUserFollowing = (user_id: string) => {
418418
return this.get<void>(`${this.url}${this.version}/users/${user_id}/following`);
419419
}
420420

@@ -500,7 +500,7 @@ export class Qiita extends Gateway {
500500
* @param item_id 投稿ID
501501
* @return 空のオブジェクト
502502
*/
503-
public checkIfLikedItem = (item_id: string) => {
503+
public fetchIfItemLiked = (item_id: string) => {
504504
return this.get<void>(`${this.url}${this.version}/items/${item_id}/like`);
505505
}
506506

@@ -527,7 +527,7 @@ export class Qiita extends Gateway {
527527
* @param item_id 投稿ID
528528
* @return 空のオブジェクト
529529
*/
530-
public checkIfStockedItem = (item_id: string) => {
530+
public fetchIfItemStocked = (item_id: string) => {
531531
return this.get<void>(`${this.url}${this.version}/items/${item_id}/stock`);
532532
}
533533

0 commit comments

Comments
 (0)