From c8233ff76a958679bc54c82201ec439da2983eb3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Be=C3=B1at=20Espi=C3=B1a?= Date: Wed, 2 Jan 2019 10:52:00 +0100 Subject: [PATCH] Removed unused params from renderTranslatedRoutes file --- src/renderTranslatedRoutes.js | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/renderTranslatedRoutes.js b/src/renderTranslatedRoutes.js index fcb3033..73d6a35 100644 --- a/src/renderTranslatedRoutes.js +++ b/src/renderTranslatedRoutes.js @@ -9,7 +9,6 @@ import flatMap from 'lodash.flatmap'; -// eslint-disable-next-line max-params const getRouteConfig = (configRoute, locale, currentLocale, pathFromRouteForPathsAndLocale) => { const {paths, ...configRouteRest} = configRoute; @@ -21,9 +20,7 @@ const getRouteConfig = (configRoute, locale, currentLocale, pathFromRouteForPath getRouteConfigForLocale = (configRoute, currentLocale, pathFromRouteForPathsAndLocale) => locale => getRouteConfig(configRoute, locale, currentLocale, pathFromRouteForPathsAndLocale); -// eslint-disable-next-line max-params const renderTranslatedRoutesForLocales = ( - configRoute, routes, locales, currentLocale, @@ -45,16 +42,13 @@ const renderTranslatedRoutesForLocales = ( ); }), ), - // eslint-disable-next-line max-params renderTranslatedRoutesForConfig = ( - configRoute, routes, currentLocale, pathFromRouteForPathsAndLocale, getRouteConfigForCurrentLocale, ) => locales => renderTranslatedRoutesForLocales( - configRoute, routes, locales, currentLocale, @@ -62,7 +56,6 @@ const renderTranslatedRoutesForLocales = ( getRouteConfigForCurrentLocale, ); -// eslint-disable-next-line max-params const renderTranslatedRoutes = (locales, routes, pathFromRouteForPathsAndLocale) => currentLocale => ( config, iterationLocale, @@ -75,7 +68,6 @@ const renderTranslatedRoutes = (locales, routes, pathFromRouteForPathsAndLocale) pathFromRouteForPathsAndLocale, ), renderTranslatedRoutesForCurrentConfig = renderTranslatedRoutesForConfig( - configRoute, routes, currentLocale, pathFromRouteForPathsAndLocale,