mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-03 03:03:24 -04:00
fix: format and remove duplicate imports
This commit is contained in:
committed by
Gustavo Madeira Santana
parent
c923fb0d5b
commit
6ffa76ed81
@@ -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";
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
Reference in New Issue
Block a user