Skip to content

Commit a8b2334

Browse files
committed
Remove comment
1 parent a310220 commit a8b2334

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/getDataSource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const getDataSource = (opts) => {
1616
'accessToken': opts.dataSource.accessToken,
1717
'linkResolver': configLinkResolver || function (ctx, doc) {
1818
if (doc.isBroken) return ''
19-
if (_.has(doc, 'data.slug.json.value')) { // Node >= 14 - can use instead use: (doc?.data?.slug?.json?.hasOwnProperty('value'))
19+
if (_.has(doc, 'data.slug.json.value')) {
2020
const regExpDomain = new RegExp(`.*${opts.config.domainSettings.domainLive}`)
2121
// Strip domain (+ everything before it) off of the slug in case it was added by mistake
2222
const slug = doc.data.slug.json.value

0 commit comments

Comments
 (0)