refactor: trim mattermost helper exports · openclaw/openclaw@8f16079
steipete
·
2026-05-01
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -5,10 +5,7 @@ import {
|
5 | 5 | createScopedChannelConfigAdapter, |
6 | 6 | } from "openclaw/plugin-sdk/channel-config-helpers"; |
7 | 7 | import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime"; |
8 | | -import { |
9 | | -collectMattermostSlashCallbackPaths, |
10 | | -resolveMattermostGatewayAuthBypassPaths, |
11 | | -} from "./gateway-auth-bypass.js"; |
| 8 | +import { resolveMattermostGatewayAuthBypassPaths } from "./gateway-auth-bypass.js"; |
12 | 9 | import { |
13 | 10 | listMattermostAccountIds, |
14 | 11 | resolveDefaultMattermostAccountId, |
@@ -38,7 +35,7 @@ export function normalizeMattermostAllowEntry(entry: string): string {
|
38 | 35 | ); |
39 | 36 | } |
40 | 37 | |
41 | | -export function formatMattermostAllowEntry(entry: string): string { |
| 38 | +function formatMattermostAllowEntry(entry: string): string { |
42 | 39 | const trimmed = entry.trim(); |
43 | 40 | if (!trimmed) { |
44 | 41 | return ""; |
@@ -50,7 +47,7 @@ export function formatMattermostAllowEntry(entry: string): string {
|
50 | 47 | return normalizeLowercaseStringOrEmpty(trimmed.replace(/^(mattermost|user):/i, "")); |
51 | 48 | } |
52 | 49 | |
53 | | -export { collectMattermostSlashCallbackPaths, resolveMattermostGatewayAuthBypassPaths }; |
| 50 | +export { resolveMattermostGatewayAuthBypassPaths }; |
54 | 51 | |
55 | 52 | export const mattermostConfigAdapter = createScopedChannelConfigAdapter<ResolvedMattermostAccount>({ |
56 | 53 | sectionKey: "mattermost", |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。