refactor(scripts): remove unused helper exports · openclaw/openclaw@9fa1252
vincentkoc
·
2026-06-18
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Filesystem script supports OpenClaw repository automation. |
2 | | -import { mkdirSync, mkdtempSync, rmSync, writeFileSync } from "node:fs"; |
| 2 | +import { mkdirSync, mkdtempSync, writeFileSync } from "node:fs"; |
3 | 3 | import { access, mkdir, open, readFile, rm, writeFile } from "node:fs/promises"; |
4 | 4 | import path from "node:path"; |
5 | 5 | import { repoRoot } from "./host-command.ts"; |
@@ -91,10 +91,6 @@ export async function cleanupPath(filePath: string): Promise<void> {
|
91 | 91 | await rm(filePath, { force: true, recursive: true }).catch(() => undefined); |
92 | 92 | } |
93 | 93 | |
94 | | -export function cleanupPathSync(filePath: string): void { |
95 | | -rmSync(filePath, { force: true, recursive: true }); |
96 | | -} |
97 | | - |
98 | 94 | export function writeExecutable(filePath: string, content: string): void { |
99 | 95 | writeFileSync(filePath, content, { encoding: "utf8", mode: 0o755 }); |
100 | 96 | } |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。