From adf0de497132a30577cd38c6a9e0079c5224c279 Mon Sep 17 00:00:00 2001
From: chenjiayi <chenjiayi22@huawei.com>
Date: Fri, 17 Nov 2023 06:12:36 +0800
Subject: [PATCH 070/103] fix(devmaster): drop incorrect preventation on
 removal op for SYMLINK token

The preventation code makes the rules loading panic when SYMLINK takes
the removal assignment op, which is incorrect.
---
 exts/devmaster/src/lib/rules/rules_load.rs | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/exts/devmaster/src/lib/rules/rules_load.rs b/exts/devmaster/src/lib/rules/rules_load.rs
index a4535b52..eee77e63 100644
--- a/exts/devmaster/src/lib/rules/rules_load.rs
+++ b/exts/devmaster/src/lib/rules/rules_load.rs
@@ -693,11 +693,6 @@ impl RuleToken {
                         msg: "Key 'SYMLINK' can not carry attribute.".location(&context),
                     });
                 }
-                if op == OperatorType::Remove {
-                    return Err(Error::RulesLoadError {
-                        msg: "Key 'SYMLINK' can not take remove operator.".location(&context),
-                    });
-                }
 
                 if !op_is_match {
                     if let Err(e) = check_value_format(key.as_str(), value.as_str(), false) {
-- 
2.33.0

