From 402ffc61bf2bd4e7de535e179a39325320e34d73 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Sat, 14 Jun 2025 01:21:11 +0800 Subject: deno(mail-server): drop custom logger, use builtin console. --- deno/tools/manage-vm.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'deno/tools/manage-vm.ts') diff --git a/deno/tools/manage-vm.ts b/deno/tools/manage-vm.ts index a1388b1..bb985ce 100644 --- a/deno/tools/manage-vm.ts +++ b/deno/tools/manage-vm.ts @@ -1,9 +1,8 @@ -import os from "node:os" +import os from "node:os"; import { join } from "@std/path"; // @ts-types="npm:@types/yargs" import yargs from "yargs"; - type ArchAliasMap = { [name: string]: string[] }; const arches = { x86_64: ["x86_64", "amd64"], @@ -13,9 +12,7 @@ type Arch = keyof typeof arches; type GeneralArch = (typeof arches)[Arch][number]; function normalizeArch(generalName: GeneralArch): Arch { - for (const [name, aliases] of Object.entries( - arches as ArchAliasMap, - )) { + for (const [name, aliases] of Object.entries(arches as ArchAliasMap)) { if (aliases.includes(generalName)) return name as Arch; } throw Error("Unknown architecture name."); -- cgit v1.2.3