Skip to content

Commit 1c4dc65

Browse files
dhakerShivnarayanwardpeet
authored andcommitted
fix(gatsby-plugin-sitemap): Removed redundant check for siteUrl (#17683)
1 parent c45b2b8 commit 1c4dc65

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

packages/gatsby-plugin-sitemap/src/internals.js

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export const runQuery = (handler, query, excludes, pathPrefix) =>
3131
// siteUrl Validation
3232
if (
3333
!r.data.site.siteMetadata.siteUrl ||
34-
r.data.site.siteMetadata.siteUrl == null ||
3534
r.data.site.siteMetadata.siteUrl.trim().length == 0
3635
) {
3736
throw new Error(

0 commit comments

Comments
 (0)