From eff002d5ed7a4c90f6b514e3c02fc2f2a5072dfe Mon Sep 17 00:00:00 2001 From: Oscar Otero Date: Tue, 29 Oct 2024 14:12:39 +0100 Subject: [PATCH] fmt --- plugins/vento.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/plugins/vento.ts b/plugins/vento.ts index 593d7a7f..570f4b74 100644 --- a/plugins/vento.ts +++ b/plugins/vento.ts @@ -8,7 +8,7 @@ import type Site from "../core/site.ts"; import type { Data } from "../core/file.ts"; import type { Engine, Helper, HelperOptions } from "../core/renderer.ts"; import type FS from "../core/fs.ts"; -import type { Environment, Plugin, Token, Loader } from "../deps/vento.ts"; +import type { Environment, Loader, Plugin, Token } from "../deps/vento.ts"; export interface Options { /** The list of extensions this plugin applies to */ @@ -79,15 +79,15 @@ class LumeLoader implements Loader { } resolve(from: string, file: string): string { - if (file.startsWith(".")) { - return normalizePath(posix.join(posix.dirname(from), file)); - } - - if (file.startsWith(this.#root)) { - return normalizePath(file); - } - - return normalizePath(posix.join(this.#root, file)); + if (file.startsWith(".")) { + return normalizePath(posix.join(posix.dirname(from), file)); + } + + if (file.startsWith(this.#root)) { + return normalizePath(file); + } + + return normalizePath(posix.join(this.#root, file)); } }