From f92f2f50736236a76d7b4a9ec767098c3dfaf395 Mon Sep 17 00:00:00 2001 From: addetz <43963729+addetz@users.noreply.github.com> Date: Mon, 11 Nov 2024 20:58:24 +0000 Subject: [PATCH] docs: add api-repositories-response to clean-packs --- Makefile | 1 + plugins/packs-integrations.js | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 8ef452d7759..58b5199ae5a 100644 --- a/Makefile +++ b/Makefile @@ -54,6 +54,7 @@ clean-versions: ## Clean Docusarus content versions clean-packs: ## Clean supplemental packs and pack images rm -rf static/img/packs rm -rf .docusaurus/packs-integrations/api_pack_response.json + rm -rf .docusaurus/packs-integrations/api_repositories_response.json clean-api: ## Clean API docs @echo "cleaning api docs" diff --git a/plugins/packs-integrations.js b/plugins/packs-integrations.js index 6a82ea7fd50..b7796252c6e 100644 --- a/plugins/packs-integrations.js +++ b/plugins/packs-integrations.js @@ -348,8 +348,8 @@ async function mapRepositories(repositories) { } }); } finally { - close(fd, (err) => { - if (err) logger.error("An error occurred while closing the file:", err); + close(fd, (err1) => { + if (err1) logger.error("An error occurred while closing the file:", err1); }); } });