aboutsummaryrefslogtreecommitdiffstats
path: root/apps/comments/src/utils
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2021-12-02 18:32:57 +0100
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-01-08 10:14:05 +0100
commit74b980310852a0b406fa9d073870f92c409d5444 (patch)
tree055cbdf57886077bf3a6ea476813deedb54064e0 /apps/comments/src/utils
parent85bc8513557f5ff37fc283d53893d4cb77ec7c3b (diff)
downloadnextcloud-server-74b980310852a0b406fa9d073870f92c409d5444.tar.gz
nextcloud-server-74b980310852a0b406fa9d073870f92c409d5444.zip
Eslint fix
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/comments/src/utils')
-rw-r--r--apps/comments/src/utils/cancelableRequest.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/apps/comments/src/utils/cancelableRequest.js b/apps/comments/src/utils/cancelableRequest.js
index c678e42dae3..1b9b33c37dc 100644
--- a/apps/comments/src/utils/cancelableRequest.js
+++ b/apps/comments/src/utils/cancelableRequest.js
@@ -24,15 +24,16 @@ import axios from '@nextcloud/axios'
/**
* Create a cancel token
- * @returns {CancelTokenSource}
+ *
+ * @return {CancelTokenSource}
*/
const createCancelToken = () => axios.CancelToken.source()
/**
* Creates a cancelable axios 'request object'.
*
- * @param {function} request the axios promise request
- * @returns {Object}
+ * @param {Function} request the axios promise request
+ * @return {object}
*/
const cancelableRequest = function(request) {
/**
@@ -44,7 +45,7 @@ const cancelableRequest = function(request) {
* Execute the request
*
* @param {string} url the url to send the request to
- * @param {Object} [options] optional config for the request
+ * @param {object} [options] optional config for the request
*/
const fetch = async function(url, options) {
return request(