fix(skills): collapse owned-root condition for clippy [skip ci]

Preserve the same owned global root classification while satisfying the existing lint.

On the preceding frozen mixed tree, codewhale-skills lib: 182 passed; targeted skills/localization clippy passed. The skills source hash remains unchanged since that run; no workspace clippy or release gate is claimed.
This commit is contained in:
CodeWhale Bot committed 2026-10-29 15:36:03 -07:00
1 parent 74517cbcac
commit f20a0d7144
1 file changed
+8 -8
+8 -8
View File
@@ -480,14 +480,14 @@ pub fn classify_configured_skills_dir(
SkillScope::Project,
);
}
if let Some(global_owned) = owned_global_skills_dir(home_dir) {
if paths_refer_to_same_dir(&global_owned, skills_dir) {
return (
SkillRootKind::CodeWhaleGlobal,
SkillRootAccess::WritableOwned,
SkillScope::Global,
);
}
if let Some(global_owned) = owned_global_skills_dir(home_dir)
&& paths_refer_to_same_dir(&global_owned, skills_dir)
{
return (
SkillRootKind::CodeWhaleGlobal,
SkillRootAccess::WritableOwned,
SkillScope::Global,
);
}
if let Some(harness) = match_compatible_project(workspace, skills_dir) {