From b96fe1ececaf65fd276da26c35864df9c729a704 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 30 Jan 2024 13:16:05 +0000 Subject: [PATCH] chore: remove extra 'not' in warning message --- packages/nuxt/src/core/app.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nuxt/src/core/app.ts b/packages/nuxt/src/core/app.ts index d5d007b51e..467376d827 100644 --- a/packages/nuxt/src/core/app.ts +++ b/packages/nuxt/src/core/app.ts @@ -119,7 +119,7 @@ export async function resolveApp (nuxt: Nuxt, app: NuxtApp) { const name = getNameFromPath(file, resolve(config.srcDir, layoutDir)) if (!name) { // Ignore files like `~/layouts/index.vue` which end up not having a name at all - logger.warn(`No layout name could not be resolved for \`~/${relative(nuxt.options.srcDir, file)}\`. Bear in mind that \`index\` is ignored for the purpose of creating a layout name.`) + logger.warn(`No layout name could be resolved for \`~/${relative(nuxt.options.srcDir, file)}\`. Bear in mind that \`index\` is ignored for the purpose of creating a layout name.`) continue } app.layouts[name] = app.layouts[name] || { name, file } @@ -135,7 +135,7 @@ export async function resolveApp (nuxt: Nuxt, app: NuxtApp) { const name = getNameFromPath(file) if (!name) { // Ignore files like `~/middleware/index.vue` which end up not having a name at all - logger.warn(`No middleware name could not be resolved for \`~/${relative(nuxt.options.srcDir, file)}\`. Bear in mind that \`index\` is ignored for the purpose of creating a middleware name.`) + logger.warn(`No middleware name could be resolved for \`~/${relative(nuxt.options.srcDir, file)}\`. Bear in mind that \`index\` is ignored for the purpose of creating a middleware name.`) continue } app.middleware.push({ name, path: file, global: hasSuffix(file, '.global') })