summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/clusters_list/store/actions.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/clusters_list/store/actions.js')
-rw-r--r--app/assets/javascripts/clusters_list/store/actions.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/assets/javascripts/clusters_list/store/actions.js b/app/assets/javascripts/clusters_list/store/actions.js
index 1be82988db0..97ed0a7ab37 100644
--- a/app/assets/javascripts/clusters_list/store/actions.js
+++ b/app/assets/javascripts/clusters_list/store/actions.js
@@ -13,11 +13,11 @@ const allNodesPresent = (clusters, retryCount) => {
They may fail for reasons GitLab cannot control.
MAX_REQUESTS will ensure this poll stops at some point.
*/
- return retryCount > MAX_REQUESTS || clusters.every(cluster => cluster.nodes != null);
+ return retryCount > MAX_REQUESTS || clusters.every((cluster) => cluster.nodes != null);
};
export const reportSentryError = (_store, { error, tag }) => {
- Sentry.withScope(scope => {
+ Sentry.withScope((scope) => {
scope.setTag('javascript_clusters_list', tag);
Sentry.captureException(error);
});
@@ -30,7 +30,7 @@ export const fetchClusters = ({ state, commit, dispatch }) => {
const poll = new Poll({
resource: {
- fetchClusters: paginatedEndPoint => axios.get(paginatedEndPoint),
+ fetchClusters: (paginatedEndPoint) => axios.get(paginatedEndPoint),
},
data: `${state.endpoint}?page=${state.page}`,
method: 'fetchClusters',
@@ -59,7 +59,7 @@ export const fetchClusters = ({ state, commit, dispatch }) => {
dispatch('reportSentryError', { error, tag: 'fetchClustersSuccessCallback' });
}
},
- errorCallback: response => {
+ errorCallback: (response) => {
poll.stop();
commit(types.SET_LOADING_CLUSTERS, false);