mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 08:15:17 +00:00
style(channels): format official token guard for ci parity
This commit is contained in:
1 parent
ec1417ab7c
commit
3c638b02ba
1 file changed
+1
-3
@@ -296,9 +296,7 @@ export function setConfiguredOfficialChannelToken(
|
|||||||
throw new Error(`${envKey} cannot be empty or multiline.`);
|
throw new Error(`${envKey} cannot be empty or multiline.`);
|
||||||
}
|
}
|
||||||
if (normalized.length > MAX_OFFICIAL_CHANNEL_TOKEN_LENGTH) {
|
if (normalized.length > MAX_OFFICIAL_CHANNEL_TOKEN_LENGTH) {
|
||||||
throw new Error(
|
throw new Error(`${envKey} cannot exceed ${MAX_OFFICIAL_CHANNEL_TOKEN_LENGTH} characters.`);
|
||||||
`${envKey} cannot exceed ${MAX_OFFICIAL_CHANNEL_TOKEN_LENGTH} characters.`
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
const envPath = getOfficialChannelEnvPath(channelId);
|
const envPath = getOfficialChannelEnvPath(channelId);
|
||||||
|
|||||||
Reference in new issue
Block a user