mirror of
https://github.com/instructkr/claw-code.git
synced 2026-04-17 05:24:50 +08:00
Fix formatting in task_packet.rs for CI
This commit is contained in:
@@ -123,7 +123,12 @@ fn validate_scope_requirements(packet: &TaskPacket, errors: &mut Vec<String>) {
|
|||||||
TaskScope::Module | TaskScope::SingleFile | TaskScope::Custom
|
TaskScope::Module | TaskScope::SingleFile | TaskScope::Custom
|
||||||
);
|
);
|
||||||
|
|
||||||
if needs_scope_path && packet.scope_path.as_ref().is_none_or(|p| p.trim().is_empty()) {
|
if needs_scope_path
|
||||||
|
&& packet
|
||||||
|
.scope_path
|
||||||
|
.as_ref()
|
||||||
|
.is_none_or(|p| p.trim().is_empty())
|
||||||
|
{
|
||||||
errors.push(format!(
|
errors.push(format!(
|
||||||
"scope_path is required for scope '{}'",
|
"scope_path is required for scope '{}'",
|
||||||
packet.scope
|
packet.scope
|
||||||
|
|||||||
Reference in New Issue
Block a user