From 6d3eaf06b3ec4d69a1ad9d17d047bd061714242e Mon Sep 17 00:00:00 2001 From: Jen Jones Arnesen Date: Fri, 10 Nov 2023 07:15:50 -0800 Subject: [PATCH] chore: function name --- services/data/src/links/RestAPILink/fetchData.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/data/src/links/RestAPILink/fetchData.ts b/services/data/src/links/RestAPILink/fetchData.ts index e5262f43..712a336b 100644 --- a/services/data/src/links/RestAPILink/fetchData.ts +++ b/services/data/src/links/RestAPILink/fetchData.ts @@ -1,6 +1,6 @@ import { FetchError, FetchErrorDetails, JsonValue } from '../../engine' -const validJsonJsonContentTypes: string[] = [ +const validJsonContentTypes: string[] = [ 'application/json', 'application/geo+json', 'application/vnd.geo+json', @@ -84,7 +84,7 @@ export function fetchData( response.headers.get('Content-Type') ) - if (validJsonJsonContentTypes.includes(contentType)) { + if (validJsonContentTypes.includes(contentType)) { return await response.json() // Will throw if invalid JSON! }