Skip to content

Commit 8bb6245

Browse files
committed
fix: destructure sitemap params inline to satisfy Codacy linter
1 parent b7c8dcc commit 8bb6245

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

docusaurus.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ const config = {
9393
priority: 0.5,
9494
ignorePatterns: ["/tags/**"],
9595
filename: "sitemap.xml",
96-
createSitemapItems: async (params) => {
97-
const {defaultCreateSitemapItems, ...rest} = params;
96+
createSitemapItems: async ({defaultCreateSitemapItems, ...rest}) => {
9897
const items = await defaultCreateSitemapItems(rest);
9998
return items.map((item) => {
10099
if (item.url === 'https://docs.phcode.dev/') {

0 commit comments

Comments
 (0)