Skip to content

Commit

Permalink
chore: function name
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen committed Nov 10, 2023
1 parent 7764adb commit 6d3eaf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/data/src/links/RestAPILink/fetchData.ts
Original file line number Diff line number Diff line change
@@ -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',
Expand Down Expand Up @@ -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!
}

Expand Down

0 comments on commit 6d3eaf0

Please sign in to comment.