mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 03:52:42 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -4,10 +4,14 @@ import path from "node:path";
|
||||
import { note } from "../terminal/note.js";
|
||||
|
||||
export function noteSourceInstallIssues(root: string | null) {
|
||||
if (!root) return;
|
||||
if (!root) {
|
||||
return;
|
||||
}
|
||||
|
||||
const workspaceMarker = path.join(root, "pnpm-workspace.yaml");
|
||||
if (!fs.existsSync(workspaceMarker)) return;
|
||||
if (!fs.existsSync(workspaceMarker)) {
|
||||
return;
|
||||
}
|
||||
|
||||
const warnings: string[] = [];
|
||||
const nodeModules = path.join(root, "node_modules");
|
||||
|
||||
Reference in New Issue
Block a user