mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 14:34:32 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -9,7 +9,9 @@ type IsMainModuleOptions = {
|
||||
};
|
||||
|
||||
function normalizePathCandidate(candidate: string | undefined, cwd: string): string | undefined {
|
||||
if (!candidate) return undefined;
|
||||
if (!candidate) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
const resolved = path.resolve(cwd, candidate);
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user