Skip to content

Commit 57dd601

Browse files
committed
refactor(generator): remove unused RuleActionReject handling in _adaptToStableBranch
1 parent 9294512 commit 57dd601

1 file changed

Lines changed: 1 addition & 10 deletions

File tree

frontend/src/utils/generator.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import {
88
LogLevel,
99
Outbound,
1010
RuleAction,
11-
RuleActionReject,
1211
RulesetType,
1312
RuleType,
1413
Strategy,
@@ -371,15 +370,7 @@ export const generateDnsServerURL = (dnsServer: IDNSServer) => {
371370
return address
372371
}
373372

374-
const _adaptToStableBranch = (config: Recordable) => {
375-
config.route.rules.forEach((rule: Recordable) => {
376-
if (rule.action === RuleAction.Reject) {
377-
if (rule.method === RuleActionReject.Reply) {
378-
delete rule.method
379-
}
380-
}
381-
})
382-
}
373+
const _adaptToStableBranch = (_: Recordable) => {}
383374

384375
export const generateConfig = async (originalProfile: IProfile, adaptToStableCore?: boolean) => {
385376
const profile = deepClone(originalProfile)

0 commit comments

Comments
 (0)