fix: format and remove duplicate imports

This commit is contained in:
Oleg Kossoy
2026-02-02 12:40:34 +02:00
committed by Gustavo Madeira Santana
parent c923fb0d5b
commit 6ffa76ed81
3 changed files with 6 additions and 3 deletions

View File

@@ -7,7 +7,6 @@ import http, { type IncomingMessage, type Server, type ServerResponse } from "no
import path from "node:path";
import { type WebSocket, WebSocketServer } from "ws";
import type { RuntimeEnv } from "../runtime.js";
import { STATE_DIR } from "../config/paths.js";
import { isTruthyEnvValue } from "../infra/env.js";
import { SafeOpenError, openFileWithinRoot } from "../infra/fs-safe.js";

View File

@@ -687,7 +687,12 @@ function printResult(result: UpdateRunResult, opts: PrintResultOptions) {
}
export async function updateCommand(opts: UpdateCommandOptions): Promise<void> {
Object.defineProperty(process, 'noDeprecation', { value: true, writable: true, enumerable: true, configurable: true });
Object.defineProperty(process, "noDeprecation", {
value: true,
writable: true,
enumerable: true,
configurable: true,
});
process.env.NODE_NO_WARNINGS = "1";
const timeoutMs = opts.timeout ? Number.parseInt(opts.timeout, 10) * 1000 : undefined;
const shouldRestart = opts.restart !== false;

View File

@@ -1,7 +1,6 @@
import crypto from "node:crypto";
import fs from "node:fs";
import path from "node:path";
import { STATE_DIR } from "../config/paths.js";
export type DeviceIdentity = {