From 1c4dc65b5a0357476a25cff272e9cb4dd04db9c5 Mon Sep 17 00:00:00 2001 From: dhakerShivnarayan <41987684+dhakerShivnarayan@users.noreply.github.com> Date: Tue, 17 Sep 2019 20:04:54 +0530 Subject: [PATCH] fix(gatsby-plugin-sitemap): Removed redundant check for siteUrl (#17683) --- 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(