Skip to content

Commit

Permalink
chore: remove extra 'not' in warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed Jan 30, 2024
1 parent 658a0ff commit b96fe1e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/nuxt/src/core/app.ts
Expand Up @@ -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 }
Expand All @@ -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') })
Expand Down

0 comments on commit b96fe1e

Please sign in to comment.