mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 23:02:02 +03:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -15,7 +15,9 @@ export type PluginHookLoadResult = {
|
||||
};
|
||||
|
||||
function resolveHookDir(api: OpenClawPluginApi, dir: string): string {
|
||||
if (path.isAbsolute(dir)) return dir;
|
||||
if (path.isAbsolute(dir)) {
|
||||
return dir;
|
||||
}
|
||||
return path.resolve(path.dirname(api.source), dir);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user