Appease linter

This commit is contained in:
Dan Q 2023-10-12 10:56:46 +01:00
parent a23fbbbd63
commit 952e4bd7fe
2 changed files with 5 additions and 6 deletions

View File

@ -8,11 +8,7 @@ import { useQuery } from '@woocommerce/navigation';
* Internal dependencies
*/
import './content.scss';
import {
Product,
ProductType,
SearchResultType,
} from '../product-list/types';
import { Product, ProductType, SearchResultType } from '../product-list/types';
import { getAdminSetting } from '../../../utils/admin-settings';
import Discover from '../discover/discover';
import Products from '../products/products';

View File

@ -63,7 +63,10 @@ async function apiFetchWithCache( params: object ): Promise< object > {
}
// Wrapper around fetch() that caches results in memory
async function fetchJsonWithCache( url: string, abortSignal?: AbortSignal ): Promise< object > {
async function fetchJsonWithCache(
url: string,
abortSignal?: AbortSignal
): Promise< object > {
// Attempt to fetch from cache:
if ( fetchCache.get( url ) ) {
return new Promise( ( resolve ) => {