From 0bc468be78d4c0c67d4dafec9e32a66e167f7bb2 Mon Sep 17 00:00:00 2001 From: dhakerShivnarayan <41987684+dhakerShivnarayan@users.noreply.github.com> Date: Tue, 17 Sep 2019 11:49:29 +0530 Subject: [PATCH] Removed redundant check for siteUrl --- packages/gatsby-plugin-sitemap/src/internals.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/gatsby-plugin-sitemap/src/internals.js b/packages/gatsby-plugin-sitemap/src/internals.js index 6fbec801358ed..3ac3cf79aa209 100644 --- a/packages/gatsby-plugin-sitemap/src/internals.js +++ b/packages/gatsby-plugin-sitemap/src/internals.js @@ -31,7 +31,6 @@ export const runQuery = (handler, query, excludes, pathPrefix) => // siteUrl Validation if ( !r.data.site.siteMetadata.siteUrl || - r.data.site.siteMetadata.siteUrl == null || r.data.site.siteMetadata.siteUrl.trim().length == 0 ) { throw new Error(