mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-28 01:21:36 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -150,7 +150,9 @@ import type { PluginRuntime } from "./types.js";
|
||||
let cachedVersion: string | null = null;
|
||||
|
||||
function resolveVersion(): string {
|
||||
if (cachedVersion) return cachedVersion;
|
||||
if (cachedVersion) {
|
||||
return cachedVersion;
|
||||
}
|
||||
try {
|
||||
const require = createRequire(import.meta.url);
|
||||
const pkg = require("../../../package.json") as { version?: string };
|
||||
|
||||
Reference in New Issue
Block a user