fix(gateway): satisfy node registry lint · openclaw/openclaw@d540512
steipete
·
2026-05-13
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -271,11 +271,11 @@ export class NodeRegistry {
|
271 | 271 | continue; |
272 | 272 | } |
273 | 273 | const approvedValue = surface.permissions?.[key]; |
274 | | -if (approvedValue === true) { |
| 274 | +if (approvedValue) { |
275 | 275 | nextEntries.push([key, true]); |
276 | 276 | continue; |
277 | 277 | } |
278 | | -if (approvedValue === false) { |
| 278 | +if (approvedValue !== undefined) { |
279 | 279 | nextEntries.push([key, false]); |
280 | 280 | } |
281 | 281 | } |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。