refactor(agents): remove unused credential comparator · openclaw/openclaw@4fee348
vincentkoc
·
2026-06-16
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -103,23 +103,3 @@ export function resolveAgentCredentialMapFromStore(
|
103 | 103 | } |
104 | 104 | return credentials; |
105 | 105 | } |
106 | | - |
107 | | -/** Compare agent runtime credential values without broad object equality. */ |
108 | | -export function agentCredentialsEqual(a: AgentCredential | undefined, b: AgentCredential): boolean { |
109 | | -if (!a || typeof a !== "object") { |
110 | | -return false; |
111 | | -} |
112 | | -if (a.type !== b.type) { |
113 | | -return false; |
114 | | -} |
115 | | - |
116 | | -if (a.type === "api_key" && b.type === "api_key") { |
117 | | -return a.key === b.key; |
118 | | -} |
119 | | - |
120 | | -if (a.type === "oauth" && b.type === "oauth") { |
121 | | -return a.access === b.access && a.refresh === b.refresh && a.expires === b.expires; |
122 | | -} |
123 | | - |
124 | | -return false; |
125 | | -} |
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。