From ee71caf2bce6c73fbb578a7fc707190e751e0bd0 Mon Sep 17 00:00:00 2001 From: infinite-persistence Date: Mon, 17 Jan 2022 14:34:41 +0800 Subject: [PATCH] Comment api: re-format to single-line. This will be an exception where the non-wrapped version is easier to read. --- ui/comments.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/ui/comments.js b/ui/comments.js index 315756401..933762830 100644 --- a/ui/comments.js +++ b/ui/comments.js @@ -1,6 +1,7 @@ // @flow import { COMMENT_SERVER_API } from 'config'; +// prettier-ignore const Comments = { url: COMMENT_SERVER_API, enabled: Boolean(COMMENT_SERVER_API), @@ -16,10 +17,8 @@ const Comments = { moderation_unblock: (params: ModerationBlockParams) => fetchCommentsApi('moderation.UnBlock', params), moderation_block_list: (params: BlockedListArgs) => fetchCommentsApi('moderation.BlockedList', params), moderation_add_delegate: (params: ModerationAddDelegateParams) => fetchCommentsApi('moderation.AddDelegate', params), - moderation_remove_delegate: (params: ModerationRemoveDelegateParams) => - fetchCommentsApi('moderation.RemoveDelegate', params), - moderation_list_delegates: (params: ModerationListDelegatesParams) => - fetchCommentsApi('moderation.ListDelegates', params), + moderation_remove_delegate: (params: ModerationRemoveDelegateParams) => fetchCommentsApi('moderation.RemoveDelegate', params), + moderation_list_delegates: (params: ModerationListDelegatesParams) => fetchCommentsApi('moderation.ListDelegates', params), moderation_am_i: (params: ModerationAmIParams) => fetchCommentsApi('moderation.AmI', params), comment_list: (params: CommentListParams) => fetchCommentsApi('comment.List', params), comment_abandon: (params: CommentAbandonParams) => fetchCommentsApi('comment.Abandon', params),